* Provide a getter for the repository's directory.
This commit is contained in:
parent
af84ec19c9
commit
37574fbdfd
1 changed files with 7 additions and 0 deletions
|
@ -185,6 +185,13 @@ public class FileRepository extends AbstractRepository {
|
||||||
return new FileResource(new File(directory, name), this);
|
return new FileResource(new File(directory, name), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the repository's directory
|
||||||
|
*/
|
||||||
|
public File getDirectory() {
|
||||||
|
return directory;
|
||||||
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return 17 + (37 * directory.hashCode());
|
return 17 + (37 * directory.hashCode());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue