Class ManifestUtils
Provides utilities for manifest generation
Inheritance
System.Object
ManifestUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.IO.FileSystem.Packaging
Assembly: Azos.dll
Syntax
public static class ManifestUtils
Fields
CONFIG_CSUM_ATTR
Declaration
public const string CONFIG_CSUM_ATTR = "csum"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_DIR_SECTION
Declaration
public const string CONFIG_DIR_SECTION = "dir"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_FILE_SECTION
Declaration
public const string CONFIG_FILE_SECTION = "file"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_LOCAL_PATH_ATTR
Declaration
public const string CONFIG_LOCAL_PATH_ATTR = "local-path"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_NAME_ATTR
Declaration
public const string CONFIG_NAME_ATTR = "name"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_PACKAGE_SECTION
Declaration
public const string CONFIG_PACKAGE_SECTION = "package"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_PACKAGES_SECTION
Declaration
public const string CONFIG_PACKAGES_SECTION = "packages"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_SIZE_ATTR
Declaration
public const string CONFIG_SIZE_ATTR = "size"
Field Value
Type | Description |
---|---|
System.String |
MANIFEST_FILE_NAME
Declaration
public const string MANIFEST_FILE_NAME = "packaging-manifest.pm"
Field Value
Type | Description |
---|---|
System.String |
Methods
GeneratePackagingManifest(FileSystemDirectory, String, String, String)
Generates packaging manifest for the specified directory. Optionally may specify root node name
Declaration
public static ConfigSectionNode GeneratePackagingManifest(this FileSystemDirectory directory, string rootNodeName = null, string packageName = null, string packageLocalPath = null)
Parameters
Type | Name | Description |
---|---|---|
FileSystemDirectory | directory | Source directory to generate manifest for |
System.String | rootNodeName | Name of root manifest node, if omitted then 'package' is defaulted |
System.String | packageName | Optional 'name' attribute value under root node |
System.String | packageLocalPath | Optional 'local-path' attribute value under root node |
Returns
Type | Description |
---|---|
ConfigSectionNode |
HasTheSameContent(IConfigSectionNode, IConfigSectionNode, Boolean)
Returns true when both config nodes represents the same manifest - that is the same file structure
Declaration
public static bool HasTheSameContent(this IConfigSectionNode master, IConfigSectionNode comparand, bool oneWay = false)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | master | Master sample copy |
IConfigSectionNode | comparand | The second manifest being compared to the master |
System.Boolean | oneWay | If true iterates on master, so extra files in comparand will not be detected. False by default in whoch case iterates on master first then on comparand |
Returns
Type | Description |
---|---|
System.Boolean | True when comparand has all files/directories that the master lists |