NanoByte.Common  2.7.0
NanoByte.Common.Storage.Paths Class Reference

Helper methods for resolving file system paths. More...

Static Public Member Functions

static IList< FileInfo > ResolveFiles ([InstantHandle] IEnumerable< string > paths, [Localizable(false)] string defaultPattern="*")
 Resolves paths to absolute file paths with wildcard support. More...
 

Detailed Description

Helper methods for resolving file system paths.

Member Function Documentation

◆ ResolveFiles()

static IList<FileInfo> NanoByte.Common.Storage.Paths.ResolveFiles ( [InstantHandle] IEnumerable< string >  paths,
[Localizable(false)] string  defaultPattern = "*" 
)
inlinestatic

Resolves paths to absolute file paths with wildcard support.

Parameters
pathsThe paths to resolve.
defaultPatternThe default pattern to use for finding files when a directory is specified.
Returns
Handles to all matching files that were found
Exceptions
FileNotFoundExceptionA file that was explicitly specified in paths (no wildcards) could not be found.

paths are first interpreted as files, then as directories. Directories are searched using the defaultPattern . * and ? characters are considered as wildcards.


The documentation for this class was generated from the following file: