Quiz on Python os.path.isdir Method



1. What does the os.path.isdir() function check?
2. What will os.path.isdir() return if the path is not a directory?
3. Which module must be imported to use os.path.isdir()?
4. Can os.path.isdir() check symbolic links?
5. What type of argument does os.path.isdir() accept?

Advertisements