public NodeFilePath DacProfilePath(DistId distId, string PackageName, N DstNode) => SqlDacDistDir(distId) + DacFileName(PackageName).ChangeExtension($"{DstNode}.{CommonFileExtensions.DacProfile}");
public NodeFolderPath SqlDacDistDir(DistId distId) => SqlDistDir(distId) + FolderName.Parse("dacpac");
public NodeFilePath SqlDacPacPath(DistId distId, FileName PackageFileName) => SqlDacDistDir(distId) + PackageFileName;
public NodeFolderPath ExeDistDir(DistId distId) => DistFolder(distId) + FolderName.Parse("exe");
public NodeFolderPath SqlDistDir(DistId distId) => DistFolder(distId) + FolderName.Parse("sql");
public IEnumerable <NodeFilePath> DistArchives(DistId distId) => DistArchiveRoot.Files($"{distId}*.zip").Reverse();
public NodeFolderPath DistFolder(DistId distId) => DistRoot + FolderName.Parse(distId);
public DistributionSpecifier(DistributionIdentifier DistId, NodeFolderPath Location, IEnumerable <FolderName> SegmentFolders) { this.DistId = DistId; this.Location = Location; this.Segments = map(SegmentFolders, CreateSegment); }
public Option <Link <DistId, FilePath> > Archive(DistId DistId) => from path in some(link(Location(DistId), DistArchive + FileName.Parse(DistId.IdentifierText + ".zip"))) from archive in C.FileArchiveManager().CreateArchive(path) select link(DistId, archive.Target);
public FolderPath Location(DistId DistId) => DistRoot + DistId;
public IEnumerable <NodeFolderPath> SegmentFolders(DistId Identifier) => DistributionLocation(Identifier).Folders();
public NodeFolderPath DistributionLocation(DistId Identifier) => (NavRoot + FolderName.Parse(Identifier));