34 static constexpr unsigned int InfiniteRecursion = (std::numeric_limits<unsigned int>::max)();
110 bool crossFileSystems =
true,
111 bool includeArtificialFS =
false )
244 std::vector<ResultsPaths>& resultPaths,
250 std::vector<ResultsPaths>& resultPaths
264 std::vector<ResultsPaths>& resultPaths )
Qualities
Per-entry information about how a node was scanned.
TLock & GetLock() const noexcept
#define IF_ALIB_THREADS(...)
ALIB_DLL FInfo::Qualities ScanFiles(FTree &tree, ScanParameters ¶meters, std::vector< ResultsPaths > &resultPaths, SharedLock *lock)
String DBG_FILES_SCAN_VERBOSE_LOG_FORMAT
std::shared_ptr< FFilter > SPFileFilter
A shared pointer to a filter.
strings::TString< PathCharType > PathString
The string-type used with this ALib Module.
files::ScanParameters ScanParameters
Type alias in namespace alib.
threads::SharedLock SharedLock
Type alias in namespace alib.
files::TSharedFTree< SharedLock > SharedFTree
Type alias in namespace alib.
system::Path Path
Type alias in namespace alib.
files::ResultsPaths ResultsPaths
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
ResultsPaths(const system::PathString &realPath, FTree::Cursor node, bool existed)
system::Path RealPath
The 'real' absolute path to the node (no symbolic links included).
FTree::Cursor Node
The node in the tree representing this path.
Input parameters to function ScanFiles.
SPFileFilter DirectoryFilterPreRecursion
static constexpr unsigned int InfiniteRecursion
Denotes 'infinite' recursion if set to field MaxDepth.
SymbolicLinks LinkTreatment
Denotes how symbolic links are treated.
unsigned int MaxDepth
The maximum recursion depth. Defaults to InfiniteRecursion.
ScanParameters(const system::PathString &startPath, SymbolicLinks linkTreatment=SymbolicLinks::RECURSIVE, unsigned int maxDepth=InfiniteRecursion, bool crossFileSystems=true, bool includeArtificialFS=false)
SymbolicLinks
Options for processing symbolic links.
@ DONT_RESOLVE
Demands not to resolve symbolic links in any way.
@ RESOLVE_BUT_DONT_FOLLOW
Path StartPath
The path to be scanned.
SPFileFilter DirectoryFilterPostRecursion
bool RemoveEmptyDirectories