Package org.duracloud.common.util
Class ContentIdUtil
java.lang.Object
org.duracloud.common.util.ContentIdUtil
- Author:
- Daniel Bernstein
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContentId(File file, File watchDir, String contentIdPrefix) Determines the content ID of a file: the path of the file relative to the watched directory.
-
Method Details
-
getContentId
Determines the content ID of a file: the path of the file relative to the watched directory. If the watched directory is null, the content ID is simply the name of the file. If a prefix is being used, the prefix is added as the initial characters in the contentId.- Parameters:
file-watchDir-contentIdPrefix-- Returns:
-