@Test public void createDir() throws IOException { File tempDir = new File(mTestFolder.getRoot(), "tmp"); FileUtils.createDir(tempDir.getAbsolutePath()); assertTrue(FileUtils.exists(tempDir.getAbsolutePath())); assertTrue(tempDir.delete()); }
public static void createDir(String path) throws IOException { Files.createDirectories(Paths.get(path)); }
FileUtils { public static void createDir(String path) throws IOException { Files.createDirectories(Paths.get(path)); } }
FileUtils { public static void createDir(String path) throws IOException { Files.createDirectories(Paths.get(path)); } private  FileUtils(); }
FileUtils { public static void createDir(String path) throws IOException { Files.createDirectories(Paths.get(path)); } private  FileUtils(); static void changeLocalFileGroup(String path, String group); static void changeLocalFilePermission(String filePath, String perms); static void changeLocalFileToFullPermission(String filePath); static String getLocalFileOwner(String filePath); static String getLocalFileGroup(String filePath); static short getLocalFileMode(String filePath); static short translatePosixPermissionToMode(Set<PosixFilePermission> permission); static void changeLocalFileUser(String path, String user); static void setLocalDirStickyBit(String dir); static void createBlockPath(String path, String workerDataFolderPermissions); static void move(String srcPath, String dstPath); static void delete(String path); static void deletePathRecursively(String path); static boolean createStorageDirPath(String path, String workerDataFolderPermissions); static void createFile(String filePath); static void createDir(String path); static boolean exists(String path); static boolean isStorageDirAccessible(String path); }
FileUtils { public static void createDir(String path) throws IOException { Files.createDirectories(Paths.get(path)); } private  FileUtils(); static void changeLocalFileGroup(String path, String group); static void changeLocalFilePermission(String filePath, String perms); static void changeLocalFileToFullPermission(String filePath); static String getLocalFileOwner(String filePath); static String getLocalFileGroup(String filePath); static short getLocalFileMode(String filePath); static short translatePosixPermissionToMode(Set<PosixFilePermission> permission); static void changeLocalFileUser(String path, String user); static void setLocalDirStickyBit(String dir); static void createBlockPath(String path, String workerDataFolderPermissions); static void move(String srcPath, String dstPath); static void delete(String path); static void deletePathRecursively(String path); static boolean createStorageDirPath(String path, String workerDataFolderPermissions); static void createFile(String filePath); static void createDir(String path); static boolean exists(String path); static boolean isStorageDirAccessible(String path);  }