Error when deleting file - check if file still exists
Posted: 2013-10-13, 19:16 UTC
There is an improvement that could be done when deleting files. Steps to reproduce the problem:
1) select some folders and some files with gray *,
2) press F8, but don't start deleting,
3) now launch another instance of TC and delete these folders and files,
4) return to the first instance of TC and press "Yes" to start deleting,
5) now none of folders and files exists, so TC reports errors "The directory XXX is not empty!" or "File XXX not found!".
In real world we can face this problem e.g. when deleting contents of TEMP folder, when some application deletes its own temporary files in the background.
So the improvement is: check if a folder/file still exists, before reporting an error to the user.
Regards
1) select some folders and some files with gray *,
2) press F8, but don't start deleting,
3) now launch another instance of TC and delete these folders and files,
4) return to the first instance of TC and press "Yes" to start deleting,
5) now none of folders and files exists, so TC reports errors "The directory XXX is not empty!" or "File XXX not found!".
In real world we can face this problem e.g. when deleting contents of TEMP folder, when some application deletes its own temporary files in the background.
So the improvement is: check if a folder/file still exists, before reporting an error to the user.
Regards