Hi, folks, I am new here. When I use os.listdir(os.curdir) to list the current directory, I get a list with the elements being files or subdirectories. My question is how to distiguish files from subdirectories. Thanks in advance! Jun