Beispiel #1
0
 public static Boolean PhotoDownloaded(String root, Project project, Photo photo)
 {
     return File.Exists(PathToPhoto(root, project, photo));
 }
Beispiel #2
0
 public static String PathToPhoto(String root, Photo photo)
 {
     return Path.Combine(root, photo.MD5Hash);
 }
Beispiel #3
0
 public static String PathToPhoto(String root, Project project, Photo photo)
 {
     return Path.Combine(root, project.Directory, photo.MD5Hash);
 }
Beispiel #4
0
 /// <summary>
 /// Returns path to a photo file.
 /// </summary>
 /// <param name="proj"></param>
 /// <param name="photo"></param>
 /// <returns></returns>
 public static String PathToPhoto(Project proj, Photo photo)
 {
     return Path.Combine(PathToProject(proj), photo.MD5Hash);
 }