How to check if a path *could* be a legal path?
rogerb at rogerbinns.com
Sun Apr 25 01:12:55 CEST 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.
More information about the Python-list