public boolean exists() throws IOException {
        return Files.exists(directory);
    }
@Test
    void exists() throws Exception {
        File folderRoot = temporaryFolder.toFile();
        File folderA = new File(folderRoot, String.valueOf(UUID.randomUUID()));

        assertThat(folderA).doesNotExist();
        Path path = folderA.toPath();
        SnapshotDirectory snapshotDirectory = SnapshotDirectory.permanent(path);
        assertThat(snapshotDirectory.exists()).isFalse();
        assertThat(folderA.mkdirs()).isTrue();
        assertThat(snapshotDirectory.exists()).isTrue();
        assertThat(folderA.delete()).isTrue();
        assertThat(snapshotDirectory.exists()).isFalse();
    }