C# Класс CmisSync.Lib.Storage.FileSystem.ExtendedAttributeReaderUnix

Extended attribute reader for unix.
Наследование: IExtendedAttributeReader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExtendedAttributeReaderUnix ( ) : System

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

GetExtendedAttribute ( string path, string key ) : string

Gets the extended attribute.

IsFeatureAvailable ( string path ) : bool

Determines whether Extended Attributes are active on the filesystem.

ListAttributeKeys ( string path ) : List

Lists the attribute keys.

RemoveExtendedAttribute ( string path, string key ) : void

Removes the extended attribute.

SetExtendedAttribute ( string path, string key, string value, bool restoreLastModificationDate = false ) : void

Sets the extended attribute.

Описание методов

ExtendedAttributeReaderUnix() публичный Метод

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.ExtendedAttributeReaderUnix class.
public ExtendedAttributeReaderUnix ( ) : System
Результат System

GetExtendedAttribute() публичный Метод

Gets the extended attribute.
public GetExtendedAttribute ( string path, string key ) : string
path string Path to the file or folder.
key string Key of the extended attribute.
Результат string

IsFeatureAvailable() публичный Метод

Determines whether Extended Attributes are active on the filesystem.
public IsFeatureAvailable ( string path ) : bool
path string Path to be checked
Результат bool

ListAttributeKeys() публичный Метод

Lists the attribute keys.
public ListAttributeKeys ( string path ) : List
path string Path which should be read.
Результат List

RemoveExtendedAttribute() публичный Метод

Removes the extended attribute.
public RemoveExtendedAttribute ( string path, string key ) : void
path string Removes attribute from this path.
key string Key of the attribute, which should be removed.
Результат void

SetExtendedAttribute() публичный Метод

Sets the extended attribute.
public SetExtendedAttribute ( string path, string key, string value, bool restoreLastModificationDate = false ) : void
path string Path to the file or folder.
key string Key of the extended attribute.
value string Value of the extended attribute.
restoreLastModificationDate bool If set to true restore last modification date.
Результат void