easy way to return a list of absolute file or directory path within a directory
iMath
redstone-cold at 163.com
Wed Sep 7 03:08:02 EDT 2016
Any easier solutions on returning a list of absolute file or directory path within a directory? Mine is
list(map(lambda entry: os.path.join(directory,entry),os.listdir(directory)))
More information about the Python-list
mailing list