Skip to content

Cant able to get/download file which having # symbol in filepath #194

@Amerbaig92

Description

@Amerbaig92

code:

import webdav4
from webdav4.client import Client
from webdav4.fsspec import WebdavFileSystem
import httpx

timeout=httpx.Timeout(506060)
client = Client("https://sddsaturn.ondemand.sas.com", auth=("USER", "PWD"),timeout=timeout)

try:

with io.BytesIO() as stream:
	client.download_fileobj(source_folder_path, stream)
	stream.seek(0)

except Exception as e:
print(f"Failed to Get/Download file to: {stream} because {e}")
logging.error(f"Failed to Get/Download file to: {stream} because {e}")

NEED HELP TO GET/DOWNLOAD FILES WITH # SYMBOL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions