C# Class CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileSystemInfoDecorator

Read only ignoring file system info decorator hides a given instance and removes read only flags before writing a change and adds it after successful operation.
Inheritance: IFileSystemInfo
ファイルを表示 Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
GetExtendedAttribute ( string key ) : string

Gets the extended attribute.

IsExtendedAttributeAvailable ( ) : bool

Determines whether instance is able to save extended attributes.

ReadOnlyIgnoringFileSystemInfoDecorator ( IFileSystemInfo info ) : System

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileSystemInfoDecorator class.

Refresh ( ) : void

Refresh the loaded information of this instance.

SetExtendedAttribute ( string key, string value, bool restoreModificationDate ) : void

Sets the extended attribute.

Protected Methods

Method Description
DisableAndEnableReadOnlyForOperation ( System.Action writeOperation ) : void

Disables read only before executing action end reenables read only after it.

Method Details

DisableAndEnableReadOnlyForOperation() protected method

Disables read only before executing action end reenables read only after it.
protected DisableAndEnableReadOnlyForOperation ( System.Action writeOperation ) : void
writeOperation System.Action Write operation.
return void

GetExtendedAttribute() public method

Gets the extended attribute.
public GetExtendedAttribute ( string key ) : string
key string Attribute name.
return string

IsExtendedAttributeAvailable() public method

Determines whether instance is able to save extended attributes.
public IsExtendedAttributeAvailable ( ) : bool
return bool

ReadOnlyIgnoringFileSystemInfoDecorator() public method

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileSystemInfoDecorator class.
public ReadOnlyIgnoringFileSystemInfoDecorator ( IFileSystemInfo info ) : System
info IFileSystemInfo Decorated file system info instance.
return System

Refresh() public method

Refresh the loaded information of this instance.
public Refresh ( ) : void
return void

SetExtendedAttribute() public method

Sets the extended attribute.
public SetExtendedAttribute ( string key, string value, bool restoreModificationDate ) : void
key string Attribute name.
value string Attribute value.
restoreModificationDate bool If set to true, the last modification date of the file will be restored after setting the attribute. If false it could have been changed by the file system.
return void