Method GetFileInfo
GetFileInfo(DirectoryInfo, string)
Creates a FileInfo instance for a file located in the specified directory or its subdirectories.
Declaration
public static FileInfo GetFileInfo(this DirectoryInfo parentDir, string relativeFilePath)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | parentDir | The parent directory to which the file path is relative. |
string | relativeFilePath | The file path relative to the parent directory. |
Returns
Type | Description |
---|---|
FileInfo | A FileInfo instance for the specified file. |