Artifacts Associated With Ticket 3006571
Ticket change [c2f83226b0] (rid 111576) by pherricoxide on 2010-05-24 18:27:04:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On 2 Windows Vista machines I've tried running file delete -force will sometimes return the error, "error deleting filename: file already exists". This doesn't really make any sense, since of course the file exists or I wouldn't be deleting it. Attached is a script to show the problem and result files from two Vista machines. This is using TCL ActiveState ActiveTcl 8.5.8.0.291595 threaded.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pherricoxide"
- subsystem initialized to: "37. File System"
- title initialized to: "error deleting: file already exists on Vista"
- type initialized to: "Bug"
Ticket change [3497c49279] (rid 106780) by pherricoxide on 2010-05-25 01:27:05:
- icomment:
File Added - 375021: filedel.tcl
- login: "pherricoxide"
- mimetype: "text/plain"
- username: "pherricoxide"
- icomment:
Add attachment "filedel.tcl" [83e5db7666] (rid 117453) by pherricoxide on 2010-05-25 01:27:05.
Ticket change [20e2d178fe] (rid 130492) by pherricoxide on 2010-05-25 01:28:15:
- icomment:
Result of script, Deleted C:/vvv Deleted C:/vvv error deleting "C:/vvv": file already exists error deleting "C:/vvv\foo": permission denied error deleting "C:/vvv\foo": permission denied Deleted C:/vvv Deleted C:/vvv error deleting "C:/vvv": file already exists Deleted C:/vvv error deleting "C:/vvv": file already exists Deleted C:/vvv Deleted C:/vvv Deleted C:/vvv
- login: "pherricoxide"
- mimetype: "text/plain"
- username: "pherricoxide"
- icomment:
Ticket change [664cc96611] (rid 102685) by dunkfan on 2010-09-03 16:56:44:
- icomment:
Also seen sporadically on Win7 64bit dual core machine. Tcl 8.5.5 threaded.
- login: "dunkfan"
- mimetype: "text/plain"
- username: "dunkfan"
- icomment:
Ticket change [e25b11f6bc] (rid 87609) by gahr on 2013-01-17 18:54:11:
- icomment:
I'm also seeing this on 8.6.0 threaded, on a cifs-mounted filesystem. Workaround here is to retry after several msec.
- login: "gahr"
- mimetype: "text/plain"
- username: "gahr"
- icomment:
Ticket change [0c43ed9bbc] (rid 260162) by serhiy.storchaka on 2026-10-23 10:06:30:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Reproduced on 8.6, 9.0 and main under Wine, and on Windows 11 on an SMB share, when another process keeps a file in the tree open with <tt>FILE_SHARE_DELETE</tt> (as virus scanners and indexers do): the file is only marked for deletion, so removing its directory fails with <tt>ERROR_DIR_NOT_EMPTY</tt>, reported as "file already exists". Local NTFS on Windows 10 1903+ is not affected. Proposed fix in branch [/timeline?r=win-delete-retry-not-empty|win-delete-retry-not-empty]: retry removing the directory for up to about 1 s, as suggested in the comment above. Also the path in the error message now uses "/" only.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [3d31d1ef26] (rid 260804) by jan.nijtmans on 2026-10-29 13:36:55:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461343.0673122224"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed in [82967ff42a|trunk], core-9-0-branch and core.8.6.branch Many thanks! One closing '}' was placed wrong in your patch. Not a serious deal, but some compilers might still produce a warning on that .... spotted in time.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"