#93 Windows filename restrictions bug

open
None
5
2004-01-25
2003-12-27
Aaron Hamid
No

After going crazy trying to figure out why a checkout
was not working, I discovered this Windows idiosyncrasy:

http://www.codeproject.com/file/isvalidfilename.asp?
print=true

Apparently there are some 'reserved' file names in
Windows which cannot be created, deleted, or otherwise
manipulated. This includes:

CLOCK$, AUX, CON, NUL, PRN, COM1, COM2, COM3,
COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2,
LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

It so happened that 'aux' was the name of one of the
directories in the project I was checking out, and
because Gruntspud could not create it, it summarily
exited with an error.

I realize that this is fundamentally a stupid Windows
peculiarity, but I think it would be rather trivial to
recognize and either put up a warning dialog, or take an
alternate name, or just prepend underscore or something
like that, so the user is aware of the problem and is able
to work around it.

I have also filed this as a FEATURE REQUEST.

Discussion

  • t_magicthize

    t_magicthize - 2004-01-25

    Logged In: YES
    user_id=553482

    I believe this would require a change to the core netbeans
    library, but ill look into.

     
  • t_magicthize

    t_magicthize - 2004-01-25
    • assigned_to: nobody --> t_magicthize
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks