use of com.epam.pipeline.entity.datastorage.DataStorageFolder in project cloud-pipeline by epam.
the class S3Helper method parseFolder.
private DataStorageFolder parseFolder(String requestPath, String name) {
String relativePath = name;
if (relativePath.endsWith(S3Constants.DELIMITER)) {
relativePath = relativePath.substring(0, relativePath.length() - 1);
}
String folderName = relativePath.substring(requestPath.length());
DataStorageFolder folder = new DataStorageFolder();
folder.setName(folderName);
folder.setPath(relativePath);
return folder;
}
Aggregations