Skip to navigation
How to check if a file or directory exist with python
07.12.13
import os #for a file: if(os.path.isfile('my_file.txt')): print "exist" #for a directory: if(os.path.isdir('/etc/my_folder/'): print "exist"
http://www.pfinn.net/python-check-if-file-exists.html
Reply
Anonymous
Information Epoch 1732521377
Development is an iterative process.
Home
Notebook
Contact us