@Test void testCreateDirectory() { assertTrue(fileStore.createDirectory("testDir")); assertTrue(fileStore.getFileUnchecked("testDir").isDirectory()); fileStore.delete("testDir"); }
public boolean createDirectory(String dirName) { validatePathname(dirName); return new File(storageDir + separator + dirName).mkdirs(); }
FileStore { public boolean createDirectory(String dirName) { validatePathname(dirName); return new File(storageDir + separator + dirName).mkdirs(); } }
FileStore { public boolean createDirectory(String dirName) { validatePathname(dirName); return new File(storageDir + separator + dirName).mkdirs(); } FileStore(String storageDir); }
FileStore { public boolean createDirectory(String dirName) { validatePathname(dirName); return new File(storageDir + separator + dirName).mkdirs(); } FileStore(String storageDir); FileStore inSubdir(String subdir); boolean createDirectory(String dirName); void deleteDirectory(String dirName); File store(InputStream is, String fileName); void move(String sourceDir, String targetDir); File getFile(String fileName); File getFileUnchecked(String fileName); void delete(String fileName); String getStorageDir(); }
FileStore { public boolean createDirectory(String dirName) { validatePathname(dirName); return new File(storageDir + separator + dirName).mkdirs(); } FileStore(String storageDir); FileStore inSubdir(String subdir); boolean createDirectory(String dirName); void deleteDirectory(String dirName); File store(InputStream is, String fileName); void move(String sourceDir, String targetDir); File getFile(String fileName); File getFileUnchecked(String fileName); void delete(String fileName); String getStorageDir();  }