Is it a directory

Check to see if it is a directory


import os

print os.path.isdir("/dir2")




















Home »
  Python »
    Advanced Features »




Exception Handling
File
Module