HowTo distinguish between File and Directory
Peter Hansen
peter at engcorp.com
Mon Jan 19 14:53:38 EST 2004
More information about the Python-list mailing list
Mon Jan 19 14:53:38 EST 2004
- Previous message (by thread): Delayed evaluation and setdefault()
- Next message (by thread): HowTo distinguish between File and Directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Scott F wrote: > > On Win32, is there a function in the standard modules that can take a > pathname and return whether it refers to a File or a Directory? import os os.path.isfile(name) os.path.isdir(name) Is that adequate? -Peter
- Previous message (by thread): Delayed evaluation and setdefault()
- Next message (by thread): HowTo distinguish between File and Directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list