C# Класс ZeroInstall.Store.Implementations.FlagUtils

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConvertToFS ( [ path ) : void

Converts all flag files in a directory into real filesystem attributes (executable bits and symlinks).

IsUnixFS ( [ target ) : bool

Determines whether a directory resides on a non-Unix filesystem.

The flag file is searched for instead of specifiying it directly to allow handling of special cases like creating manifests of subdirectories of extracted archives.

MarkAsNoUnixFS ( [ target ) : void

Sets a flag for a directory indicating that it resides on a non-Unix filesystem. This makes future calls to IsUnixFS run faster and more reliable.

Remove ( [ path, [ relativePath ) : void

Removes one or more flags for a file or directory in an external flag file.

Rename ( [ path, [ source, [ destination ) : void

Adds a directory prefix to all entries in an external flag file.

Set ( [ path, [ relativePath ) : void

Sets a flag for a file in an external flag file.

Приватные методы

Метод Описание
FindRootDir ( [ flagName, [ target ) : string
GetFiles ( [ flagName, [ target ) : ICollection

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

ConvertToFS() публичный статический Метод

Converts all flag files in a directory into real filesystem attributes (executable bits and symlinks).
public static ConvertToFS ( [ path ) : void
path [ The path to the directory to convert.
Результат void

IsUnixFS() публичный статический Метод

Determines whether a directory resides on a non-Unix filesystem.
The flag file is searched for instead of specifiying it directly to allow handling of special cases like creating manifests of subdirectories of extracted archives.
public static IsUnixFS ( [ target ) : bool
target [ The full path to the directory.
Результат bool

MarkAsNoUnixFS() публичный статический Метод

Sets a flag for a directory indicating that it resides on a non-Unix filesystem. This makes future calls to IsUnixFS run faster and more reliable.
There was an error writing the flag file. You have insufficient rights to write the flag file.
public static MarkAsNoUnixFS ( [ target ) : void
target [ The full path to the directory.
Результат void

Remove() публичный статический Метод

Removes one or more flags for a file or directory in an external flag file.
is not a relative path. There was an error writing the flag file. You have insufficient rights to write the flag file.
public static Remove ( [ path, [ relativePath ) : void
path [ The full path to the flag file, named or .
relativePath [ The path of the file or directory to remove relative to .
Результат void

Rename() публичный статический Метод

Adds a directory prefix to all entries in an external flag file.
or is not a relative path. There was an error writing the flag file. You have insufficient rights to write the flag file.
public static Rename ( [ path, [ source, [ destination ) : void
path [ The full path to the flag file, named or .
source [ The old path of the renamed file or directory relative to .
destination [ The new path of the renamed file or directory relative to .
Результат void

Set() публичный статический Метод

Sets a flag for a file in an external flag file.
is not a relative path. There was an error writing the flag file. You have insufficient rights to write the flag file.
public static Set ( [ path, [ relativePath ) : void
path [ The full path to the flag file, named or .
relativePath [ The path of the file to set relative to .
Результат void