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 nameDescription
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

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also