Page 1 of 1

Copying/moving files open for writing

Posted: 2010-08-23, 09:45 UTC
by trybowski
Total Commander allows to copy a file that is opened for writing. This can be useful at times (for example you can copy an Excel sheet that is open), but it can lead to data loss: imagine a situation where a program fetches data from database and saves it to file. If you copy a file while it's not yet ready, you'll get a copy that is missing some part of data, but since you got no warning, you may think that the file is complete.

My wish:
1) On attempt to copy a file that is opened for writing, issue a warning, with possibility to continue or skip.
2) Point 1 should be configurable — with possibility to disable it, but enabled by default.
3) On attempt to move a file that is opened for writing, issue a warning, with possibility to continue or skip. If user presses “skip”, file shouldn't be copied at all (treat “move” as one logical operation, not two separate “copy+delete”).

What do you think?

Posted: 2010-08-23, 10:37 UTC
by MVV
I think that TC can't detect if file is opened for writing. If file was opened for writing with shared read allowed, any app may read this file, but if file was opened w/o shared read allowed, any app will get error opening file for read. Such files won't be copied or viewed by F3.