Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 36)
36.
What is the purpose of the os.path.isdir() function?
Checks if a file exists
Checks if a path is a regular file
Checks if a path points to a directory
Checks if a file is empty
Answer: Option
Explanation:
os.path.isdir() checks if a path points to a directory.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.