Skip to content

Commit

Permalink
Add test case for deeply nested directories on Windows for files.sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Renerick authored and Fizzadar committed Apr 13, 2024
1 parent 10695cc commit ff45f9e
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions tests/operations/files.sync/sync_delete_windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
"files": {
"yet-another-file.txt": null
},
"dirs": {}
"dirs": {
"evendeeper": {
"files": {
"a-very-deep-file.txt": null
},
"dirs": {}
}
}
},
"__pycache__": {
"files": {
Expand All @@ -38,18 +45,21 @@
"path=/home/somedir/anotherfile.txt": null,
"path=/home/somedir/deleteme.txt": true,
"path=/home/somedir/nodelete.pyc": true,
"path=/home/somedir/underthat/yet-another-file.txt": null
"path=/home/somedir/underthat/yet-another-file.txt": null,
"path=/home/somedir/underthat/evendeeper/a-very-deep-file.txt": null
},
"files.Directory": {
"path=/home/somedir": null,
"path=/home/somedir/underthat": null
"path=/home/somedir/underthat": null,
"path=/home/somedir/underthat/evendeeper": null
},
"files.FindFiles": {
"path=/home/somedir": [
"/home/somedir/deleteme.txt",
"/home/somedir/nodelete.pyc"
],
"path=/home/somedir/underthat": []
"path=/home/somedir/underthat": [],
"path=/home/somedir/underthat/evendeeper": []
},
"files.Link": {
"path=/home/somedir": false
Expand All @@ -60,6 +70,8 @@
"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"],
Expand All @@ -70,6 +82,12 @@
"/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"
]
}

0 comments on commit ff45f9e

Please sign in to comment.