Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #path #folder #python
ADD COMMENT
Topic
Name
2+6 =