[Tutor] how to know if a file exists

Kent Johnson kent37 at tds.net
Thu Jan 4 12:05:27 CET 2007


shawn bright wrote:
> hello there,
> i am writing an app for linux. what command would be easiest to test and 
> see if a certain file exist ?

os.path.exists() or os.path.isfile()

Kent



More information about the Tutor mailing list