Dfenestr8 wrote: >os.listdir("path") returns the names of all the items in a directory ok, >but I need to know whether the item is a file or a directory. > >Can anybody tell me how this could be done? > > os.path.isdir("path") Aaron