-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving or copying the folder with a replace option does not work #10515
Comments
I don't agree with the expected behaviour. The content after replacing should be |
then we have uploading folder issue. should be same behavior IMHO steps:
Result: f1 contains |
Not sure if we can do much about that the moment since uploading and copying/moving are being handled differently. Uploading a folder goes through each file separately to upload it. That means existing files in a folder are not affected. Whereas copying/moving are WebDAV operations and handle the folder itself as one resource. In case of replacing, the client sends an overwrite header to the server so it will replace the folder with all its contents completely. Solutions I can think of:
I prefer the first approach to be honest. |
Yes, I think the same. The "Replace" option in folder upload conflict handling should be named "Merge" instead. Doing a delete before uploading would open a can of worms for error handling (I'd expect a rollback for the deleted folder in case the upload goes wrong...) |
I created #10640 to keep track of it. Which means I'm closing here as this has been resolved. |
ocis: 5.1.0-prealpha+44bdea9608
web: 8.0.0-rc.5
Steps:
folder1/file1.txt
andsubfolder/folder1/file2.txt
folder1
tosubfolder/folder1
with replays optionExpect:
subfolder/folder1
contains two files:file1.txt
andfile2.txt
Actual:
Screen.Recording.2024-02-26.at.15.44.54.mov
Same case uploading folder with replace works fine
The text was updated successfully, but these errors were encountered: