Check if File or Directory Exists using Python April 16, 2021 Python 0 Comments 326 Views os.path module import os pathname = 'dir/test.txt' result = os.path.exists(pathname) print(result)
Leave a Comment
Cancel reply