Gayathri Kumaran posted: " This snippet fetches the list of files in a directory sorting them by their names using os.listdir(). Earlier we used glob() to do this. import os dir_name = '/home/Documents/' # Get list of all files in a given directory sorted by name list_of_"
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.