C# Class Trinet.Core.IO.Ntfs.FileSystem

File-system utilities.
Show file Open project: hubkey/Trinet.Core.IO.Ntfs

Public Methods

Method Description
AlternateDataStreamExists ( string filePath, string streamName ) : bool

Returns a flag indicating whether the specified alternate data stream exists.

AlternateDataStreamExists ( this file, string streamName ) : bool

(Extension Method)
Returns a flag indicating whether the specified alternate data stream exists.

DeleteAlternateDataStream ( string filePath, string streamName ) : bool

Deletes the specified alternate data stream if it exists.

DeleteAlternateDataStream ( this file, string streamName ) : bool

(Extension Method)
Deletes the specified alternate data stream if it exists.

GetAlternateDataStream ( string filePath, string streamName ) : AlternateDataStreamInfo

Opens an alternate data stream.

GetAlternateDataStream ( string filePath, string streamName, FileMode mode ) : AlternateDataStreamInfo

Opens an alternate data stream.

GetAlternateDataStream ( this file, string streamName ) : AlternateDataStreamInfo

(Extension Method)
Opens an alternate data stream.

GetAlternateDataStream ( this file, string streamName, FileMode mode ) : AlternateDataStreamInfo

(Extension Method)
Opens an alternate data stream.

ListAlternateDataStreams ( string filePath ) : IList

Returns a read-only list of alternate data streams for the specified file.

ListAlternateDataStreams ( this file ) : IList

(Extension Method)
Returns a read-only list of alternate data streams for the specified file.

Private Methods

Method Description
CreateInfo ( string path ) : FileSystemInfo

Creates a FileSystemInfo for the specified path.

Method Details

AlternateDataStreamExists() public static method

Returns a flag indicating whether the specified alternate data stream exists.
/// is or an empty string. /// /// is not a valid file path. /// -or- /// contains invalid characters. ///
public static AlternateDataStreamExists ( string filePath, string streamName ) : bool
filePath string /// The path of the file to inspect. ///
streamName string /// The name of the stream to find. ///
return bool

AlternateDataStreamExists() public static method

(Extension Method)
Returns a flag indicating whether the specified alternate data stream exists.
/// is . /// /// contains invalid characters. ///
public static AlternateDataStreamExists ( this file, string streamName ) : bool
file this /// The to inspect. ///
streamName string /// The name of the stream to find. ///
return bool

DeleteAlternateDataStream() public static method

Deletes the specified alternate data stream if it exists.
/// is or an empty string. /// /// is not a valid file path. /// -or- /// contains invalid characters. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission, or the file is read-only. /// /// The specified file is in use. ///
public static DeleteAlternateDataStream ( string filePath, string streamName ) : bool
filePath string /// The path of the file to inspect. ///
streamName string /// The name of the stream to find. ///
return bool

DeleteAlternateDataStream() public static method

(Extension Method)
Deletes the specified alternate data stream if it exists.
/// is . /// /// contains invalid characters. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission, or the file is read-only. /// /// The specified file is in use. ///
public static DeleteAlternateDataStream ( this file, string streamName ) : bool
file this /// The to inspect. ///
streamName string /// The name of the stream to delete. ///
return bool

GetAlternateDataStream() public static method

Opens an alternate data stream.
/// is or an empty string. /// /// The specified was not found. /// /// is not a valid file path. /// -or- /// contains invalid characters. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission, or the file is read-only. ///
public static GetAlternateDataStream ( string filePath, string streamName ) : AlternateDataStreamInfo
filePath string /// The path of the file which contains the stream. ///
streamName string /// The name of the stream to open. ///
return AlternateDataStreamInfo

GetAlternateDataStream() public static method

Opens an alternate data stream.
/// is or an empty string. /// /// The specified was not found. /// /// is not a valid file path. /// -or- /// contains invalid characters. /// /// is either or . /// /// is , and the stream doesn't exist. /// -or- /// is , and the stream already exists. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission, or the file is read-only. ///
public static GetAlternateDataStream ( string filePath, string streamName, FileMode mode ) : AlternateDataStreamInfo
filePath string /// The path of the file which contains the stream. ///
streamName string /// The name of the stream to open. ///
mode FileMode /// One of the values, indicating how the stream is to be opened. ///
return AlternateDataStreamInfo

GetAlternateDataStream() public static method

(Extension Method)
Opens an alternate data stream.
/// is . /// /// The specified was not found. /// /// contains invalid characters. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission, or the file is read-only. ///
public static GetAlternateDataStream ( this file, string streamName ) : AlternateDataStreamInfo
file this /// The which contains the stream. ///
streamName string /// The name of the stream to open. ///
return AlternateDataStreamInfo

GetAlternateDataStream() public static method

(Extension Method)
Opens an alternate data stream.
/// is . /// /// The specified was not found. /// /// contains invalid characters. /// /// is either or . /// /// is , and the stream doesn't exist. /// -or- /// is , and the stream already exists. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission, or the file is read-only. ///
public static GetAlternateDataStream ( this file, string streamName, FileMode mode ) : AlternateDataStreamInfo
file this /// The which contains the stream. ///
streamName string /// The name of the stream to open. ///
mode FileMode /// One of the values, indicating how the stream is to be opened. ///
return AlternateDataStreamInfo

ListAlternateDataStreams() public static method

Returns a read-only list of alternate data streams for the specified file.
/// is or an empty string. /// /// is not a valid file path. /// /// The specified does not exist. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission. ///
public static ListAlternateDataStreams ( string filePath ) : IList
filePath string /// The full path of the file to inspect. ///
return IList

ListAlternateDataStreams() public static method

(Extension Method)
Returns a read-only list of alternate data streams for the specified file.
/// is . /// /// The specified does not exist. /// /// The caller does not have the required permission. /// /// The caller does not have the required permission. ///
public static ListAlternateDataStreams ( this file ) : IList
file this /// The to inspect. ///
return IList