Skip to content

Instantly share code, notes, and snippets.

@RenSys
Last active April 22, 2017 01:05
Show Gist options
  • Save RenSys/476a5b0c63bd512f72fb3228145ce2cc to your computer and use it in GitHub Desktop.
Save RenSys/476a5b0c63bd512f72fb3228145ce2cc to your computer and use it in GitHub Desktop.
Standard - isfile() Check if File Exist
from os.path import isfile
if isfile('filename.xxx'):
print 'file exists'
else:
print 'no file exists'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment