Пример #1
0
        // ----< loads the contents of the file from disk  >--------------------
        public static bool copyToDest(RepoFile repoFile, string destFolder)
        {
            string packageFolder = FileSystem.CreateDirectory(repoFile.PackageName, destFolder);

            return(FileSystem.CopyFile($"../SaveFiles/{repoFile.Filename}", packageFolder));
        }
Пример #2
0
 // ----< stringifies file information into desired format  >--------------------
 public static string stringify(RepoFile repoFile)
 {
     return($"{repoFile.PackageName}#{repoFile.Namespace}#{repoFile.Filename}.{repoFile.Version}");
 }