Searched refs:fileOrDir (Results 1 – 3 of 3) sorted by relevance
74 public static final SourceTreeType getSourceTreeType(File fileOrDir) { in getSourceTreeType() argument75 if (fileOrDir == null) return null; in getSourceTreeType()76 File parentDir = fileOrDir.isFile() ? fileOrDir.getParentFile() : fileOrDir; in getSourceTreeType()94 public static final DirectoryType getDirectoryType(File fileOrDir) { in getDirectoryType() argument95 if (fileOrDir == null) return null; in getDirectoryType()96 File parentDir = fileOrDir.isFile() ? fileOrDir.getParentFile() : fileOrDir; in getDirectoryType()
145 public static String getPath(String fileOrDir, String filename) { in getPath() argument148 if (fileOrDir == null) { in getPath()151 Path path = Paths.get(fileOrDir); in getPath()
50 Path fileOrDir; in main() local56 fileOrDir = Paths.get(args[0]); in main()62 if (Files.isDirectory(fileOrDir)) { in main()63 walkDirectory(fileOrDir, name); in main()66 "cannot specificy a name pattern for a non-directory file: %s", fileOrDir); in main()67 IcuDataParser parser = new IcuDataParser(fileOrDir); in main()73 private static void walkDirectory(Path fileOrDir, Optional<Pattern> name) throws IOException { in walkDirectory() argument77 try (Stream<Path> files = Files.walk(fileOrDir)) { in walkDirectory()