Closed Renerick closed 7 months ago
I created a failing test case by adding another level of nesting in windows test, here is the result
--> COMMANDS OUTPUT:
[
"mkdir -p /home/somedir",
"chmod 755 /home/somedir",
"mkdir -p /home/somedir/underthat",
"chmod 755 /home/somedir/underthat",
"mkdir -p '/home/somedir/underthat\\evendeeper'",
"chmod 755 '/home/somedir/underthat\\evendeeper'",
[
"upload",
"\\somedir\\somefile.txt",
"/home/somedir/somefile.txt"
],
"chmod 644 /home/somedir/somefile.txt",
[
"upload",
"\\somedir\\anotherfile.txt",
"/home/somedir/anotherfile.txt"
],
"chmod 644 /home/somedir/anotherfile.txt",
[
"upload",
"\\somedir\\underthat\\yet-another-file.txt",
"/home/somedir/underthat/yet-another-file.txt"
],
"chmod 644 /home/somedir/underthat/yet-another-file.txt",
[
"upload",
"\\somedir\\underthat\\evendeeper\\a-very-deep-file.txt",
"/home/somedir/underthat\\evendeeper/a-very-deep-file.txt"
],
"chmod 644 '/home/somedir/underthat\\evendeeper/a-very-deep-file.txt'",
"rm -f /home/somedir/deleteme.txt"
]
Describe the bug
When running files.sync on Windows against Linux host, backwards slashes in the paths in nested directories are not normalized
Directory structure being synced
Outcome:
To Reproduce
Try to sync a deeply nested directory from Windows to Linux
Expected behavior
Directory structure is preserved after sync
Meta
-vv
and--debug
.