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
Afficher le fichier Open project: OpenDataSpace/CmisSync

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
DisableAndEnableReadOnlyForOperation ( System.Action writeOperation ) : void

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

Method Details

DisableAndEnableReadOnlyForOperation() protected méthode

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

GetExtendedAttribute() public méthode

Gets the extended attribute.
public GetExtendedAttribute ( string key ) : string
key string Attribute name.
Résultat string

IsExtendedAttributeAvailable() public méthode

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

ReadOnlyIgnoringFileSystemInfoDecorator() public méthode

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

Refresh() public méthode

Refresh the loaded information of this instance.
public Refresh ( ) : void
Résultat void

SetExtendedAttribute() public méthode

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.
Résultat void