Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VDirectory.EnumerateFileSystemEntries Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

EnumerateFileSystemEntries(String)

Returns an enumerator that yields full paths to file system entries that are located in the directory identified by the path.

Declaration
public static IEnumerable<string> EnumerateFileSystemEntries(string path)
Parameters
Type Name Description
String path

The path to the directory that contains file system entries that should be returned.

Returns
Type Description
IEnumerable<String>

An enumerator that yields file system entries located in the directory identified by the path.

EnumerateFileSystemEntries(String, String)

Returns an enumerator that yields full paths to file system entries that are located in the directory identified by the path and their name matches the given searchPattern.

Declaration
public static IEnumerable<string> EnumerateFileSystemEntries(string path, string searchPattern)
Parameters
Type Name Description
String path

The path to the directory that contains file system entries that should be returned.

String searchPattern

The search pattern to which the name of the returned file system entry must conform. Search patterns may include '?' and '*' wildcards.

Returns
Type Description
IEnumerable<String>

An enumerator that yields file system entries located in the directory identified by the path and their name matches the given searchPattern.

EnumerateFileSystemEntries(String, String, SearchOption)

Returns an enumerator that yields full paths to file system entries that are located in the directory identified by the path and their name matches the given searchPattern. When the searchPattern has value AllDirectories then this method returns all file system entries recursively; otherwise returns only file system entries on the first level of the hierarchy.

Declaration
public static IEnumerable<string> EnumerateFileSystemEntries(string path, string searchPattern, SearchOption searchOption)
Parameters
Type Name Description
String path

The path to the directory that contains file system entries that should be returned.

String searchPattern

The search pattern to which the name of the returned file system entry must conform. Search patterns may include '?' and '*' wildcards.

SearchOption searchOption

When the searchOption has value AllDirectories then this method returns all file system entries recursively; otherwise returns only file system entry on the first level of the hierarchy.

Returns
Type Description
IEnumerable<String>

An enumerator that yields file system entries located in the directory identified by the path and their name matches the given searchPattern.

In This Article
  • EnumerateFileSystemEntries(String)
  • EnumerateFileSystemEntries(String, String)
  • EnumerateFileSystemEntries(String, String, SearchOption)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies