>>>import os

>>>os.path.isdir(fileordirectoryname)

If directory, its output will be True.

If not, it will be False.

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer