C# Class Cornerstone.Extensions.IO.PathStringExtensions

ファイルを表示 Open project: damienhaynes/moving-pictures

Public Methods

Method Description
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

Method Details

MoveTo() public static method

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
return bool

PathIsUnc() public static method

Gets a value indicating wether the path is in UNC format.
public static PathIsUnc ( this self ) : bool
self this
return bool

PathToDirectoryInfo() public static method

Creates a DirectoryInfo object from a path
public static PathToDirectoryInfo ( this self ) : DirectoryInfo
self this
return System.IO.DirectoryInfo

PathToDriveletter() public static method

Gets the drive letter for the given path
public static PathToDriveletter ( this self ) : string
self this
return string

PathToFileInfo() public static method

Creates a FileInfo object using the string value as path parameter
public static PathToFileInfo ( this self ) : FileInfo
self this
return System.IO.FileInfo