Answers for "pathlib path check if file exists"

1

pathlib path exists

import pathlib
path = pathlib.Path('my/path/to/file/or/dir')
assert path.exists()
Posted by: Guest on August-27-2021

Code answers related to "pathlib path check if file exists"

Python Answers by Framework

Browse Popular Code Answers by Language