ch.busyboxes.agoo.dao
Interface FileSystemDAO

All Known Implementing Classes:
FileSystemDAOImpl

public interface FileSystemDAO

Abstraction of tasks executed on the file system

Author:
julien@busyboxes.ch

Method Summary
 java.lang.String computeMd5Hash(java.lang.String path)
          Compute md5 hash
 java.util.List<java.lang.String> getFilesInPath(java.lang.String path)
          List all files in a given folder
 

Method Detail

getFilesInPath

java.util.List<java.lang.String> getFilesInPath(java.lang.String path)
List all files in a given folder

Parameters:
path - the path to the folder
Returns:
the list of file's paths relative to the folder

computeMd5Hash

java.lang.String computeMd5Hash(java.lang.String path)
Compute md5 hash

Parameters:
path - the path of the file to be checked
Returns:
the md5 of the file


Copyright © 2009. All Rights Reserved.