Skip to content
Tcl Source Code History Of Ticket 3006571
Login

History Of Ticket 3006571

Artifacts Associated With Ticket 3006571

  1. Ticket change [c2f83226b0] (rid 111576) by pherricoxide on 2010-05-24 18:27:04:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "pherricoxide"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "error deleting: file already exists on Vista"
    12. type initialized to: "Bug"
  2. Ticket change [3497c49279] (rid 106780) by pherricoxide on 2010-05-25 01:27:05:

    1. icomment:
      
      
      File Added - 375021: filedel.tcl
      
      
      
    2. login: "pherricoxide"
    3. mimetype: "text/plain"
    4. username: "pherricoxide"
  3. Add attachment "filedel.tcl" [83e5db7666] (rid 117453) by pherricoxide on 2010-05-25 01:27:05.

  4. Ticket change [20e2d178fe] (rid 130492) by pherricoxide on 2010-05-25 01:28:15:

    1. 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
      
      
    2. login: "pherricoxide"
    3. mimetype: "text/plain"
    4. username: "pherricoxide"
  5. Ticket change [664cc96611] (rid 102685) by dunkfan on 2010-09-03 16:56:44:

    1. icomment:
      Also seen sporadically on Win7 64bit dual core machine. Tcl 8.5.5 threaded.
      
      
    2. login: "dunkfan"
    3. mimetype: "text/plain"
    4. username: "dunkfan"
  6. Ticket change [e25b11f6bc] (rid 87609) by gahr on 2013-01-17 18:54:11:

    1. icomment:
      I'm also seeing this on 8.6.0 threaded, on a cifs-mounted filesystem. Workaround here is to retry after several msec.
      
      
    2. login: "gahr"
    3. mimetype: "text/plain"
    4. username: "gahr"
  7. Ticket change [0c43ed9bbc] (rid 260162) by serhiy.storchaka on 2026-10-23 10:06:30:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. 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.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  8. Ticket change [3d31d1ef26] (rid 260804) by jan.nijtmans on 2026-10-29 13:36:55:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461343.0673122224"
    3. closer changed to: "jan.nijtmans"
    4. 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.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. severity changed to: "Minor"
    9. status changed to: "Closed"