* Greg Perry <[EMAIL PROTECTED]> [070331 01:21]: > Yeah I figured that. I am trying to find a way to have the program detect if > the user input is a file or directory, which is easy enough with os.path. > However, os.path makes no distinction between a regular file and a mask, eg > filename.txt or *.txt. I guess I'll have to have a second set of tests to > see if the filename contains any wildcards..? That depends upon the OS. On Unix style systems, the wildcard is interpreted by the shell, so typically programs don't see any wildcards.
Andreas _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor