1 package ch.busyboxes.agoo.dao; 2 3 import java.util.List; 4 5 /** 6 * Abstraction of tasks executed on the file system 7 * 8 * @author julien@busyboxes.ch 9 */ 10 public interface FileSystemDAO { 11 12 /** 13 * List all files in a given folder 14 * 15 * @param path the path to the folder 16 * @return the list of file's paths relative to the folder 17 */ 18 public List<String> getFilesInPath(String path); 19 20 /** 21 * Compute md5 hash 22 * 23 * @param path the path of the file to be checked 24 * @return the md5 of the file 25 */ 26 public String computeMd5Hash(String path); 27 28 }