We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25388b9 commit a46ee19Copy full SHA for a46ee19
1 file changed
solvebio/cli/data.py
@@ -151,8 +151,11 @@ def _upload_folder(
151
for abs_local_parent_path, folders, files in os.walk(base_local_path):
152
# Strips off the local path and adds the parent directory at
153
# each phase of the loop
154
+ base_local_path_dirname = os.path.dirname(base_local_path)
155
+ if os.name == "nt":
156
+ base_local_path_dirname = re.escape(os.path.dirname(base_local_path))
157
local_parent_path = re.sub(
- "^" + os.path.dirname(base_local_path), "", abs_local_parent_path
158
+ "^" + base_local_path_dirname, "", abs_local_parent_path
159
).lstrip("/")
160
161
if should_exclude(abs_local_parent_path, exclude_paths, dry_run=dry_run):
0 commit comments