DirectoryInfoExtensions Class
Extensions of DirectoryInfo.
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["DirectoryInfoExtensions"] class Type type-node

Syntax

public static class DirectoryInfoExtensions

Methods

Name Return Value Summary
FindDirectory(DirectoryInfo?, string) DirectoryInfo?
Finds the specified target DirectoryInfo under the specified root DirectoryInfo.
static
FindFile(DirectoryInfo?, string) FileInfo?
Finds the specified FileInfo under the specified DirectoryInfo.
static
GetParentDirectory(DirectoryInfo?, int) string
Gets the parent directory.
static
GetParentDirectoryInfo(DirectoryInfo?, int) DirectoryInfo?
Gets the parent DirectoryInfo.
static
ToCombinedPath(DirectoryInfo?, string) string
Combines path and root based on the current value of Path.DirectorySeparatorChar of the current OS or passes through a drive-letter rooted path.
static
VerifyDirectory(DirectoryInfo?, string) void
Verifies the specified DirectoryInfo with conventional error handling.
static