Skip to content

Instantly share code, notes, and snippets.

View Bojackson123's full-sized avatar

Bojackson Bojackson123

  • Brighton, UK
View GitHub Profile
@keithweaver
keithweaver / check-if-file-exists.py
Created March 10, 2017 03:49
Check if file exists with Python
import os
def doesFileExists(filePathAndName):
return os.path.exists(filePathAndName)
# Example
if doesFileExists('./test.json'):
print ('Yaa it exists!')
else:
print ('Nope! Not around')