Ejemplo n.º 1
0
        void UpdateFileMetaData(PackageMetaData metaData, FileObjectMapping x, ICollection <string> paths)
        {
            metaData.Size += new FileInfo(Path.Combine(WorkingPath.ToString(), x.FilePath)).Length;
            var path = Repository.GetObjectPath(x.Checksum);

            if (paths.Contains(path.ToString()))
            {
                return;
            }
            paths.Add(path.ToString());
            metaData.SizePacked += new FileInfo(path.ToString()).Length;
        }
Ejemplo n.º 2
0
 void CrippleSixSyncIfExists()
 {
     Tools.FileUtil.Ops.DeleteIfExists(Path.Combine(WorkingPath.ToString(),
                                                    Legacy.SixSync.Repository.RepoFolderName,
                                                    ".repository.yml"));
 }