Skip to content

Commit e765d50

Browse files
author
Miriama Vargova
committed
fix upload from windows
1 parent 483fe7a commit e765d50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mergin/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def list_project_directory(directory):
5555
dirs[:] = [d for d in dirs if d not in excluded_dirs]
5656
for file in files:
5757
abs_path = os.path.abspath(os.path.join(root, file))
58-
proj_path = abs_path[len(prefix) + 1:]
58+
rel_path = os.path.relpath(abs_path, start=prefix)
59+
# we need posix path
60+
proj_path = '/'.join(rel_path.split(os.path.sep))
5961
proj_files.append({
6062
"path": proj_path,
6163
"checksum": generate_checksum(abs_path),

0 commit comments

Comments
 (0)