MCPcopy Create free account
hub / github.com/FabricMC/Matcher / isDirEmpty

Method isDirEmpty

src/main/java/matcher/gui/menu/FileMenu.java:304–311  ·  view source on GitHub ↗
(Path dir)

Source from the content-addressed store, hash-verified

302 }
303
304 private static boolean isDirEmpty(Path dir) {
305 try (Stream<Path> stream = Files.list(dir)) {
306 return !stream.anyMatch(ignore -> true);
307 } catch (IOException e) {
308 e.printStackTrace();
309 return false;
310 }
311 }
312
313 private static MappingFormat getFormat(Path file) {
314 if (Files.isDirectory(file)) return MappingFormat.ENIGMA_DIR;

Callers 1

saveMappingsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected