Exemple #1
0
 public int PurgeOrphans(string filepath)
 {
     return(UnityAssetFile.GetUnityAssetFiles(filepath)
            .Skip(p => IsFileReferenced(p))
            .ProcessAndCount(p => File.Delete(p)));
 }
Exemple #2
0
 public void ValidateFiles(string filepath)
 {
     UnityAssetFile.GetUnityAssetFiles(filepath)
     .Process(p => ValidateFile(p));
 }
Exemple #3
0
 public void LoadReferences(string filepath)
 {
     UnityAssetFile.GetUnityAssetFiles(filepath)
     .Process(p => LoadReferencesFromFile(p));
 }