C# Class Cornerstone.Extensions.IO.FileSystemInfoExtensions

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

Public Methods

Method Description
Exists ( this self, string compareSerial ) : bool

Get a value indicating whether the current file exists on the same volume.

GetDriveInfo ( this self ) : DriveInfo

Gets the DriveInfo object related to this instance

GetDriveLetter ( this self ) : string

Gets the driveletter of this instance

GetDriveVolumeSerial ( this self ) : string

Returns the volume serial of the drive where this path resides or empty if no serial is found.

IsOpticalPath ( this self ) : bool

Gets a value indicating wether this FileSystemInfo object is located on a optical drive.

IsRemovablePath ( this self ) : bool

Gets a value indicating wether this FileSystemInfo object is located on a removable drive.

IsReparsePoint ( this self ) : bool

Gets a value indicating whether this filesysteminfo object is a reparse point

IsUncPath ( this self ) : bool

Gets a value indicating whether the current path is formatted as UNC

Method Details

Exists() public static method

Get a value indicating whether the current file exists on the same volume.
public static Exists ( this self, string compareSerial ) : bool
self this
compareSerial string
return bool

GetDriveInfo() public static method

Gets the DriveInfo object related to this instance
public static GetDriveInfo ( this self ) : DriveInfo
self this
return System.IO.DriveInfo

GetDriveLetter() public static method

Gets the driveletter of this instance
public static GetDriveLetter ( this self ) : string
self this
return string

GetDriveVolumeSerial() public static method

Returns the volume serial of the drive where this path resides or empty if no serial is found.
public static GetDriveVolumeSerial ( this self ) : string
self this
return string

IsOpticalPath() public static method

Gets a value indicating wether this FileSystemInfo object is located on a optical drive.
public static IsOpticalPath ( this self ) : bool
self this
return bool

IsRemovablePath() public static method

Gets a value indicating wether this FileSystemInfo object is located on a removable drive.
public static IsRemovablePath ( this self ) : bool
self this
return bool

IsReparsePoint() public static method

Gets a value indicating whether this filesysteminfo object is a reparse point
public static IsReparsePoint ( this self ) : bool
self this
return bool

IsUncPath() public static method

Gets a value indicating whether the current path is formatted as UNC
public static IsUncPath ( this self ) : bool
self this
return bool