If we want to move or delete a folder, but some of its contained files are currently being used, the operation will likely fail after it has already started, and the folder could be left in a half-way, "corrupt" state.
Is there a fast way to detect in advance that this will happen to avoid starting the operation?
Caveat: I realize that if we perform the check beforehand, it might pass, but a file might start being used during the operation. Maybe in that case the solution would be to restore the folder's contents as they were before the operation started.