@Test public void givenFolderNotFoundWhenCheckContainerExistenceThenRetunFalse() { Assert.assertFalse(storage.isExistingFolder(CONTAINER_NAME, FOLDER_NAME)); }
@Override public boolean isExistingFolder(String containerName, String folderName) { Path folderPath = getObjectPath(containerName, folderName); return folderPath.toFile().exists() && folderPath.toFile().isDirectory(); }
WorkspaceFileSystem implements WorkspaceContentAddressableStorage { @Override public boolean isExistingFolder(String containerName, String folderName) { Path folderPath = getObjectPath(containerName, folderName); return folderPath.toFile().exists() && folderPath.toFile().isDirectory(); } }
WorkspaceFileSystem implements WorkspaceContentAddressableStorage { @Override public boolean isExistingFolder(String containerName, String folderName) { Path folderPath = getObjectPath(containerName, folderName); return folderPath.toFile().exists() && folderPath.toFile().isDirectory(); } WorkspaceFileSystem(StorageConfiguration configuration); }
WorkspaceFileSystem implements WorkspaceContentAddressableStorage { @Override public boolean isExistingFolder(String containerName, String folderName) { Path folderPath = getObjectPath(containerName, folderName); return folderPath.toFile().exists() && folderPath.toFile().isDirectory(); } WorkspaceFileSystem(StorageConfiguration configuration); void checkWorkspaceFile(String... paths); @Override void createContainer(String containerName); @Override void purgeContainer(String containerName); @Override void purgeOldFilesInContainer(String containerName, TimeToLive timeToLive); @Override void deleteContainer(String containerName, boolean recursive); @Override boolean isExistingContainer(String containerName); @Override void createFolder(String containerName, String folderName); @Override void deleteFolder(String containerName, String folderName); @Override boolean isExistingFolder(String containerName, String folderName); @Override List<URI> getListUriDigitalObjectFromFolder(String containerName, String folderName); @Override void uncompressObject(String containerName, String folderName, String archiveMimeType,
        InputStream inputStreamObject); @Override void putObject(String containerName, String objectName, InputStream stream); @Override void putAtomicObject(String containerName, String objectName, InputStream stream, long size); @Override Response getObject(String containerName, String objectName, Long chunkOffset,
        Long maxChunkSize); @Override void deleteObject(String containerName, String objectName); @Override boolean isExistingObject(String containerName, String objectName); @Override String computeObjectDigest(String containerName, String objectName, DigestType algo); @Override ContainerInformation getContainerInformation(String containerName); @Override JsonNode getObjectInformation(String containerName, String objectName); @Override long countObjects(String containerName); void compress(String containerName, List<String> folderNames, String zipName,
        String outputContainer); }
WorkspaceFileSystem implements WorkspaceContentAddressableStorage { @Override public boolean isExistingFolder(String containerName, String folderName) { Path folderPath = getObjectPath(containerName, folderName); return folderPath.toFile().exists() && folderPath.toFile().isDirectory(); } WorkspaceFileSystem(StorageConfiguration configuration); void checkWorkspaceFile(String... paths); @Override void createContainer(String containerName); @Override void purgeContainer(String containerName); @Override void purgeOldFilesInContainer(String containerName, TimeToLive timeToLive); @Override void deleteContainer(String containerName, boolean recursive); @Override boolean isExistingContainer(String containerName); @Override void createFolder(String containerName, String folderName); @Override void deleteFolder(String containerName, String folderName); @Override boolean isExistingFolder(String containerName, String folderName); @Override List<URI> getListUriDigitalObjectFromFolder(String containerName, String folderName); @Override void uncompressObject(String containerName, String folderName, String archiveMimeType,
        InputStream inputStreamObject); @Override void putObject(String containerName, String objectName, InputStream stream); @Override void putAtomicObject(String containerName, String objectName, InputStream stream, long size); @Override Response getObject(String containerName, String objectName, Long chunkOffset,
        Long maxChunkSize); @Override void deleteObject(String containerName, String objectName); @Override boolean isExistingObject(String containerName, String objectName); @Override String computeObjectDigest(String containerName, String objectName, DigestType algo); @Override ContainerInformation getContainerInformation(String containerName); @Override JsonNode getObjectInformation(String containerName, String objectName); @Override long countObjects(String containerName); void compress(String containerName, List<String> folderNames, String zipName,
        String outputContainer);  }