Python Programming - Reading and Writing Files - Discussion

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

Post your comments here:

Your comments will be displayed after verification.