Python File and Directory Tests
Posted:
Friday, September 2nd, 2011Last modified:
Tuesday, March 31st, 2015Check if Path is Valid
import os path = '/tmp' os.path.exists(path)
Check if Path is Directory
import os path = '/tmp' os.path.isdir(path)
Available Wiki Topics
The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.