C# Класс Cornerstone.Extensions.IO.PathStringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
MoveTo ( this oldFilePath, string newFilePath ) : bool

Moves a file to a new location

PathIsUnc ( this self ) : bool

Gets a value indicating wether the path is in UNC format.

PathToDirectoryInfo ( this self ) : DirectoryInfo

Creates a DirectoryInfo object from a path

PathToDriveletter ( this self ) : string

Gets the drive letter for the given path

PathToFileInfo ( this self ) : FileInfo

Creates a FileInfo object using the string value as path parameter

Описание методов

MoveTo() публичный статический Метод

Moves a file to a new location
public static MoveTo ( this oldFilePath, string newFilePath ) : bool
oldFilePath this Full path of old file
newFilePath string Full path of where to move new file
Результат bool

PathIsUnc() публичный статический Метод

Gets a value indicating wether the path is in UNC format.
public static PathIsUnc ( this self ) : bool
self this
Результат bool

PathToDirectoryInfo() публичный статический Метод

Creates a DirectoryInfo object from a path
public static PathToDirectoryInfo ( this self ) : DirectoryInfo
self this
Результат System.IO.DirectoryInfo

PathToDriveletter() публичный статический Метод

Gets the drive letter for the given path
public static PathToDriveletter ( this self ) : string
self this
Результат string

PathToFileInfo() публичный статический Метод

Creates a FileInfo object using the string value as path parameter
public static PathToFileInfo ( this self ) : FileInfo
self this
Результат System.IO.FileInfo