/** * Appends the directory suffix to the key. * * @param key the key to convert * @return key as a directory path */ protected String convertToFolderName(String key) { // Strips the slash if it is the end of the key string. This is because the slash at // the end of the string is not part of the Object key. key = CommonUtils.stripSuffixIfPresent(key, PATH_SEPARATOR); return key + getFolderSuffix(); }
for (int i = 0; i < inputs.length; i++) { assertEquals(results[i], CommonUtils.stripSuffixIfPresent(inputs[i], suffixToStrip[i]));
if (child.endsWith(getFolderSuffix())) { child = CommonUtils.stripSuffixIfPresent(child, getFolderSuffix()); children.put(child, new UfsDirectoryStatus(child, permissions.getOwner(), permissions.getGroup(), permissions.getMode()));
/** * Appends the directory suffix to the key. * * @param key the key to convert * @return key as a directory path */ protected String convertToFolderName(String key) { // Strips the slash if it is the end of the key string. This is because the slash at // the end of the string is not part of the Object key. key = CommonUtils.stripSuffixIfPresent(key, PATH_SEPARATOR); return key + getFolderSuffix(); }
if (child.endsWith(getFolderSuffix())) { child = CommonUtils.stripSuffixIfPresent(child, getFolderSuffix()); children.put(child, new UfsDirectoryStatus(child, permissions.getOwner(), permissions.getGroup(), permissions.getMode()));