win32file.FindFilesIterator

iterator = FindFilesIterator(FileName, Transaction )

Returns an interator based on FindFirstFile/FindNextFile. Similar to win32file::FindFiles , but avoids the creation of the list for huge directories.

Parameters

FileName : string

A string that specifies a valid directory or path and filename, which can contain wildcard characters (* and ?).

Transaction=None : PyHANDLE

Handle to a transaction, can be None. If this parameter is not None, FindFirstFileTransacted will be called to perform a transacted search

Comments

Accepts keyword args.

FindFirstFileTransacted will be called if a transaction handle is passed in.

Return Value

The result is a Python iterator, with each next() method returning a WIN32_FIND_DATA tuple.