public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteDirectory(Path directory) |
static byte[] |
readFileContents(InputStream inputStream) |
static String |
translateToVolumePath(String windowsStylePath)
Translates a file path from the Windows Style to a syntax accepted by Docker,
so that volumes be safely mounted in both Docker for Windows and the legacy
Docker Toolbox.
|
public static void deleteDirectory(Path directory) throws IOException
IOExceptionpublic static byte[] readFileContents(InputStream inputStream) throws IOException
IOExceptionpublic static String translateToVolumePath(String windowsStylePath)
docker run -v //c/foo/bar:/somewhere (...)
You should only use this method on Windows-style paths, and not Unix-style paths.
windowsStylePath - A path formatted in Windows-style, e.g. "C:\foo\bar".https://github.com/quarkusio/quarkus/issues/5360Copyright © 2020 JBoss by Red Hat. All rights reserved.