public class RepoFile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RepoFile.FsFile
File type wrapper for actual OS files.
|
Constructor and Description |
---|
RepoFile(File root,
File file)
Both root and file are absolute paths to files.
|
RepoFile(File root,
String path)
Assumes that path is relative under root, and constructs a new
File
and calls RepoFile(File, File) |
Modifier and Type | Method and Description |
---|---|
String |
basename() |
String |
dirname() |
File |
file() |
String |
fullname() |
String |
hash() |
ChecksumAlgorithm |
hasher() |
long |
length() |
boolean |
matches(File file) |
static String |
norm(String path)
Somewhat complicated method to turn any path into a unique like path
rooted at "/".
|
String |
toString() |
public RepoFile(File root, String path)
File
and calls RepoFile(File, File)
public static String norm(String path)
path
- Non-null;public boolean matches(File file)
public File file()
public String basename()
public String dirname()
public String fullname()
public ChecksumAlgorithm hasher()
public String hash()
public long length()
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.