Menu ▾ ▴

#444 RMDIR doesn't delete file with double dots prefix

closed-fixed
Scripting (211)
5
2015-04-05
2006-01-31
Anonymous
No

Version : 2.14
OS : Windows XP SP2

The command:

RMDIR /R Directory

does not recursively delete the directory if the
directory contains a file name that begins with 2
dots.

For example:

Directory\..FileName1

I suspect the code for RMDIR assumes that any
directory entry beginning with "." or ".." represents
the current directory entry or the parent directory
entry.

The code should be modified to check if the directory
entry is a file or a directory; if it is a file then
delete it.

thanks,
David Campbell

Discussion

  • Amir Szekely

    Amir Szekely - 2006-01-31
    • assigned_to: nobody --> kichik
    • summary: RMDIR Bug --> RMDIR doesn't delete file with double dots prefix
    • status: open --> closed-fixed
     
  • Amir Szekely

    Amir Szekely - 2006-01-31

    Logged In: YES
    user_id=584402

    Thanks, fixed.

     
  • Philippe Ombredanne

    Logged In: YES
    user_id=879778

    Confirmed as fixed in 2.15
    Thanks!

     

Log in to post a comment.