Class FileUtils
java.lang.Object
io.github.ascopes.protobufmavenplugin.utils.FileUtils
Common helper logic for file handling operations.
- Author:
- Ashley Scopes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileExtension
(Path path) static String
static void
makeExecutable
(Path file) static Path
static FileSystem
openZipAsFileSystem
(Path zipPath) rebaseFileTree
(Path existingRoot, Path newRoot, Stream<Path> paths)
-
Field Details
-
log
private static final org.slf4j.Logger log
-
-
Constructor Details
-
FileUtils
private FileUtils()
-
-
Method Details
-
normalize
-
getFileNameWithoutExtension
-
getFileExtension
-
openZipAsFileSystem
- Throws:
IOException
-
makeExecutable
- Throws:
IOException
-
rebaseFileTree
public static List<Path> rebaseFileTree(Path existingRoot, Path newRoot, Stream<Path> paths) throws IOException - Throws:
IOException
-