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; }
void CrippleSixSyncIfExists() { Tools.FileUtil.Ops.DeleteIfExists(Path.Combine(WorkingPath.ToString(), Legacy.SixSync.Repository.RepoFolderName, ".repository.yml")); }