Specifies how a search pattern is treated (how to traverse a hierarchy of directories).
Namespace:
Rebex.IO
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Enumeration TraversalMode |
C# |
---|
public enum TraversalMode |
Members
Member name | Description | |
---|---|---|
Recursive |
Performs shallow search for files and directories; do recursive transfer of matching directories. Shallow search means that items are searched only in the first level of given directory. If the pattern matches a file, the file is processed. If the pattern matches a directory, all files and subdirectories are processed. | |
NonRecursive |
Performs shallow search for files and directories; do non-recursive transfer of matching directories. Shallow search means that items are searched only in the first level of given directory. If the pattern matches a file, the file is processed. If the pattern matches a directory, only the directory itself is processed (without any content = empty directory will be created). | |
MatchFilesShallow |
Performs shallow search for files only. This is the same as NonRecursive mode, but only files are processed. Shallow search means that files are searched only in the first level of given directory. | |
MatchFilesDeep |
Performs deep search for files only. This is like DOS xcopy deep file search. Deep search means that files are searched in the given directory and also in all its subdirectories. However, if this mode is used in GetItems method, returned collection will also contains directories where the files were found. |
Remarks
See Using TraversalMode blog post for samples.