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
Supported by the .NET Compact FrameworkRecursive
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.
Supported by the .NET Compact FrameworkNonRecursive
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).
Supported by the .NET Compact FrameworkMatchFilesShallow
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.
Supported by the .NET Compact FrameworkMatchFilesDeep
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 Compact Framework

Supported in: 3.9, 3.5

See Also