|
list = FindFiles(fileSpec) Retrieves a list of matching filenames. An interface to the API FindFirstFile/FindNextFile/Find close functions.
ParametersfileSpec : string
A string that specifies a valid directory or path and filename, which can contain wildcard characters (* and ?).Win32 API ReferencesFindFirstFile
FindNextFile
FindClose
Return ValueThe return value is a list of tuples, in the same format as the WIN32_FIND_DATA structure:
Items- [0] int : attributes
- File Attributes. A combination of the win32com.FILE_ATTRIBUTE_* flags.
- [1] PyTime : createTime
- File creation time.
- [2] PyTime : accessTime
- File access time.
- [3] PyTime : writeTime
- Time of last file write
- [4] int : nFileSizeHigh
- high order word of file size.
- [5] int : nFileSizeLow
- low order word of file size.
- [6] int : reserved0
- Reserved.
- [7] int : reserved1
- Reserved.
- [8] string : fileName
- The name of the file.
- [9] string : alternateFilename
- Alternative name of the file, expressed in 8.3 format.
|