Home
last modified time | relevance | path

Searched refs:fileOrDir (Results 1 – 3 of 3) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DFactory.java74 public static final SourceTreeType getSourceTreeType(File fileOrDir) { in getSourceTreeType() argument
75 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() argument
95 if (fileOrDir == null) return null; in getDirectoryType()
96 File parentDir = fileOrDir.isFile() ? fileOrDir.getParentFile() : fileOrDir; in getDirectoryType()
DCldrUtility.java145 public static String getPath(String fileOrDir, String filename) { in getPath() argument
148 if (fileOrDir == null) { in getPath()
151 Path path = Paths.get(fileOrDir); in getPath()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DIcuDataDumper.java50 Path fileOrDir; in main() local
56 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() argument
77 try (Stream<Path> files = Files.walk(fileOrDir)) { in walkDirectory()