Paths of a different flavour compare unequal and cannot be ordered:
2.2 Directory & File Managament Using Modules os and shutil
of them into memory, then the answer from Rafe Kettler (copied from his
import glob import os import shutil for file_name in glob.glob('*.txt'): new_path
for infile in sorted(glob.glob('*.txt')): print "Current File Being Processed is: " + infile. Note that the os.path.join call in your code is a no-op; with ...
fails and generates a message that states that the path (file name) is too long.
We get the current working directory with cwd() and the home
Looking to convert a text file to CSV using Python?
Copy the file to your working directory, home/Desktop/workshops/YourName.
Selects the data format to be read or written: text , csv (Comma Separated