>> for album in listdir(getcwd()): doesn't listdir give you subdirectories AND files?
So, then if you try to: chdir(album) If album is a file, it chokes? Just a guess. I'm on Windows, not Linux. rd -- http://mail.python.org/mailman/listinfo/python-list