[EMAIL PROTECTED] wrote: > os.path.exists() checks if a path exists, so a directory as argument > also returns True
the original requirement was "to check if a file of a certain name exists before the user creates a new file of that name". if you want to check for files only, use the os.path.isfile predicate. </F> -- http://mail.python.org/mailman/listinfo/python-list