A question on the creation of list of lists
Gregory Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 23 08:36:49 EDT 2015
Jean-Michel Pichavant wrote:
>> From: "subhabrata banerji" <subhabrata.banerji at gmail.com>
>>
>> list_of_files = glob.glob('C:\Python27\*.*')
>
> 1/ Your file pattern search will not get files that do not have any dot in
> their name
Actually, on Windows, it will. (This is for compatibility with
MS-DOS 8.3 filenames, where the dot wasn't actually stored, so
there was no distinction between a filename with a dot and an
empty extension, and a filename with no dot.)
--
Greg
More information about the Python-list
mailing list