adding dashbord
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.lucares.utils.file;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.FileVisitResult;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -76,4 +77,12 @@ public class FileUtils {
|
||||
return files.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
public static String readSilent(final Path p) {
|
||||
try {
|
||||
return Files.readString(p, StandardCharsets.UTF_8);
|
||||
} catch (final IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user