[This is preliminary documentation and is subject to change.]
When overriden in derived class retrieves the first file in a directory of the plugin's file system.
Namespace: Tools.TotalCommanderTAssembly: Tools.TotalCommander (in Tools.TotalCommander.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| Visual Basic |
|---|
Public MustOverride Function FindFirst ( _
Path As String, _
ByRef FindData As FindData _
) As Object |
Parameters
- Path
- Type: System..::..String
Full path to the directory for which the directory listing has to be retrieved. Important: no wildcards are passed to the plugin! All separators will be backslashes, so you will need to convert them to forward slashes if your file system uses them!
As root, a single backslash is passed to the plugin. The root items appear in the plugin base directory retrieved by Name at installation time. This default root name is NOT part of the path passed to the plugin!
All subdirs are built from the directory names the plugin returns through FindFirst(String, FindData%) and FindNext(Object, FindData%), separated by single backslashes, e.g. \Some server\c:\subdir
- FindData
- Type: Tools.TotalCommanderT..::..FindData%
A FindData struct (mimics WIN32_FIND_DATA as defined in the Windows SDK) to be pupulated with the file or directory details. Use the Attributes field set to Directory to distinguish files from directories. On Unix systems, you can | (or) the Attributes field with 0x80000000 and set the ReparsePointTag parameter to the Unix file mode (permissions).
Return Value
Any object. It is recommended to return object that represents current state of the search. This will allow recursive directory searches needed for copying whole trees. This object will be passed to
FindNext(Object, FindData%) by the calling program.
Returned object is added to
HandleDictionaryNull if there are no more files.
Remarks
Exceptions
See Also