To check if a path is a Directory in Python you can use the snippet below.
Sample Python
import os print(os.path.isdir("/myfolder/folder1"))
All the Code Snippets and Samples you need
To check if a path is a Directory in Python you can use the snippet below.
import os print(os.path.isdir("/myfolder/folder1"))
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to check if a path is a Directory in #Python #py #scripting #coding #code #dev #developer #programming http://t.co…
RT @CodeSnippetsNET: How to check if a path is a Directory in #Python #py #scripting #coding #code #dev #developer #programming http://t.co…
RT @CodeSnippetsNET: How to check if a path is a Directory in #Python #py #scripting #coding #code #dev #developer #programming http://t.co…