-
Notifications
You must be signed in to change notification settings - Fork 0
Cant interact with file during upload process #25
Comments
This issue still persists for large files, i suggest we leave it for now and get back to it later, eventually users should be able to do whatever they want with the files, deleting them, renaming them, moving them..., the app has to do what the user wants, not the other way around. |
I'm curious we can delete or rename files while we are copying those files. If we cannot, even if we make a copy of a large file to prevent this issue, OS will block until copying the file to some temporal directory. |
Can we cancel the copy process on the fly?, So file is copying -> cancel it -> execute user action. |
The file watch service we're using notifies a file was created/modified/deleted. To cancel the copy process, we need to get events in advance e.g. a file is going to be created/modified/deleted. So, we need to investigate other libraries. |
Is file in use is o/s specific? I cannot reproduce in linux. |
|
During uploading a repeating text file of about 3.2GB, I removed the file using Which class that lock the file during uploading? afaik, g-s-s does not do that?
|
@jasonwee Yes, this only happens on Windows. It blocks renaming/deleting files while they are opened. So, in sync-sia, files are blocked while it calculates hash values |
@jkawamoto , do you mean because of sync-sia calculate hash values of a file then the file is blocked? if you removed this file hashing calculation, will the file in use error still complaint by windows? |
I think during the hash value calculation the file is blocked but I haven't tested what happens if the hash calculation is removed. |
Users should be able to interact with their files without getting these sort of errors. Maybe copy the file to temp and upload it from there.
The text was updated successfully, but these errors were encountered: