C# Class ZeroInstall.Store.Implementations.FlagUtils

Mostrar archivo Open project: 0install/0install-win Class Usage Examples

Public Methods

Method 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

Method Description
FindRootDir ( [ flagName, [ target ) : string
GetFiles ( [ flagName, [ target ) : ICollection

Method Details

ConvertToFS() public static method

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.
return void

IsUnixFS() public static method

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.
return bool

MarkAsNoUnixFS() public static method

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.
return void

Remove() public static method

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 .
return void

Rename() public static method

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 .
return void

Set() public static method

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 .
return void