Is an enum which can be:
DirEntry
DirEntryExt
pathrelative pathis_symlinkTrueis entry is a symbolic link.is_dirTrueis entry is a directory.is_fileTrueis entry is a file.st_ctimecreation time in seconds as float.st_mtimemodification time in seconds as float.st_atimeaccess time in seconds as float.st_sizesize of entry.
is_symlinkTrueis entry is a symbolic link.is_dirTrueis entry is a directory.is_fileTrueis entry is a file.st_ctimecreation time in seconds as float.st_mtimemodification time in seconds as float.st_atimeaccess time in seconds as float.st_modefile access mode / rights.st_inoinode number (only for Unix).st_devdevice number (only for Unix).st_nlinknumber of hard links.st_sizesize of entry.st_blksizeblock size of file system.st_blocksnumber of blocks used.st_uiduser id (only for Unix).st_gidgroud id (only for Unix).st_rdevdevice number (for character and block devices on Unix).
Creates a class instance for getting the metadata of the entries of a file tree. The class instance initially does nothing. To start the scan either the method start or the method collect has to be called.
root_pathis directory to scan.~is allowed on Unix systems.sortediftruealphabetically sort results.skip_hiddeniftrueignore all hidden files and directories.metadataiftruealso fetch some metadata.metadata_extiftruealso fetch extended metadata.max_depthis maximum depth of iteration. If0then depth limit is disabled.dir_includelist of patterns for directories to include.dir_excludelist of patterns for directories to exclude.file_includelist of patterns for files to include.file_excludelist of patterns for files to exclude.case_sensitiveiftruethen do case sensitive pattern matching.return_typedefines type of data returned.storestore results in local structure.
For valid file patterns see module glob.
ReturnType::BasereturnDirEntryobjects.ReturnType::ExtreturnDirEntryExtobjects.
Return results in sorted order.
skip_hidden(mut self, skip_hidden: bool) -> Self
Set to true to skip hidden (starting with a dot) files.
Set the maximum depth of entries yield by the iterator.
Set maximum number of files to collect.
Set directory include filter.
Set directory exclude filter.
Set file include filter.
Set file exclude filter.
Set case sensitive filename filtering.
Set extended file type counting.
Clear all results.
Start parsing the directory tree in background. Raises an exception if a task is already running.
Wait for parsing task to finish.
Stop parsing task.
Calculate statistics and return a Toc object when the task has finished. This method is blocking.
If only_new is true this method returns true if new results are available,
If only_new is false this method returns true if results are available,
If only_new is true this method returns number of new results,
If only_new is false this method returns number of total results,
If only_new is true this method returns new results,
If only_new is false this method returns total results,
If only_new is true this method returns true if new results are available,
If only_new is false this method returns true if results are available,
If only_new is true this method returns number of new results,
If only_new is false this method returns number of total results,
If only_new is true this method returns new results,
If only_new is false this method returns total results,
Returns true if errors occured while scanning the file tree.
Returns number of errors occured while scanning the file tree.
Returns the errors.
Returns the results serialized with speedy.
For this method the feature speedy needs to be enabled.
Returns the results serialized with bincode.
For this method the feature bincode needs to be enabled.
Returns the results serialized as json.
For this method the feature json needs to be enabled.
Returns the statistics of the results.
Returns the duration of the task in seconds as float. As long as the task is running it will return 0.
Returns true after the task has finished.
Returns true while a task is running.