C# Class ZeroInstall.Store.Implementations.FlagUtils

Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
FindRootDir ( [ flagName, [ target ) : string
GetFiles ( [ flagName, [ target ) : ICollection

Method Details

ConvertToFS() public static méthode

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

IsUnixFS() public static méthode

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

MarkAsNoUnixFS() public static méthode

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

Remove() public static méthode

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

Rename() public static méthode

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

Set() public static méthode

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