We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9f9854 commit 2f8493dCopy full SHA for 2f8493d
1 file changed
nextcloudclient/upload.py
@@ -48,7 +48,7 @@ def upload_to_nextcloud(source_paths: list[str], remote_name: str, remote_path:
48
49
url = posixpath.join(webdav_url,remote_webdav_path)
50
51
- filename = file.split("/")[-1]
+ filename = os.path.basename(file)
52
tmp_results.append((filename, checksum, size, url))
53
54
if os.path.isdir(path):
0 commit comments