Last active
April 22, 2017 01:05
-
-
Save RenSys/476a5b0c63bd512f72fb3228145ce2cc to your computer and use it in GitHub Desktop.
Standard - isfile() Check if File Exist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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