File (@NotNull String dirName) { File file = child(dirName); boolean dirMade = file.mkdir(); LOG.assertTrue(dirMade, "Directory " + dirName + " was not created on [" + file.getPath() + "]. " + "list of files in the parent dir: " + Arrays.toString(file.getParentFile().listFiles())); debug("# mkdir " + dirName); LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file); return file; }