Answers for "ptython check if path is directory"

0

check if path is a folder python

import os

# check the if the path is a directory
print(os.path.isdir("path"))

# check if the path is a file
print(os.path.isfile("path"))
Posted by: Guest on August-13-2021

Code answers related to "ptython check if path is directory"

Python Answers by Framework

Browse Popular Code Answers by Language