import osos.path.exists(path) # Returns whether the path (directory or file) exists or notos.path.isfile(path) # Returns whether the file exists or not
↧
Answer by benefactual for How do I check whether a file exists without exceptions?
↧