Fix - Stuck on folders

Added a check to see if it is a folder. if so skip it.

if os.path.isdir(os.path.join(basedir,item)): continue