How to check if a path *could* be a legal path?

Roger Binns rogerb at rogerbinns.com
Sat Apr 24 19:12:55 EDT 2004


Heather Coppersmith wrote:
> And "/" is still reserved for the directory separator.

Unless you use older versions of PC-NFS in which case you
could create files with '/' in them.  You could never
delete them from the server side though :-)

The easiest way of solving this whole problem is to
copy how Microsoft does it!  They create a new file/folder
named "new file" or "new folder" and then put you in rename
mode.  If the user presses escape, delete the file,
else rename it.

Roger





More information about the Python-list mailing list