public interface RepoPath extends Info
Modifier and Type | Field and Description |
---|---|
static char |
ARCHIVE_SEP |
static char |
PATH_SEPARATOR |
static String |
REMOTE_CACHE_SUFFIX |
static char |
REPO_PATH_SEP |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
String |
getName() |
RepoPath |
getParent() |
String |
getPath() |
String |
getRepoKey() |
boolean |
isFile()
Whether this repo path is a path to a file, rather than a folder.
|
boolean |
isFolder()
Whether this repo path is a path to a folder, rather than a file.
|
boolean |
isRoot() |
String |
toPath()
A path composed of the repository key and path.
|
static final char REPO_PATH_SEP
static final char ARCHIVE_SEP
static final char PATH_SEPARATOR
static final String REMOTE_CACHE_SUFFIX
String getPath()
String getId()
String toPath()
repoKey = "key", path = "path/to" returns "key/path/to" repoKey = "key", name = "" returns "key/"
String getName()
@Nullable RepoPath getParent()
boolean isRoot()
boolean isFile()
boolean isFolder()
Copyright © 2019. All rights reserved.