Class FileUtils
- java.lang.Object
-
- org.spongepowered.gradle.vanilla.internal.resolver.FileUtils
-
public final class FileUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidatomicMove(java.nio.file.Path source, java.nio.file.Path destination)static voidcreateDirectoriesSymlinkSafe(java.nio.file.Path directory)static @Nullable java.nio.file.attribute.BasicFileAttributesfileAttributesIfExists(java.nio.file.Path file)static java.nio.file.PathtemporaryPath(java.nio.file.Path parent, java.lang.String key)
-
-
-
Method Detail
-
atomicMove
public static void atomicMove(java.nio.file.Path source, java.nio.file.Path destination) throws java.io.IOException- Throws:
java.io.IOException
-
createDirectoriesSymlinkSafe
public static void createDirectoriesSymlinkSafe(java.nio.file.Path directory) throws java.io.IOException- Throws:
java.io.IOException
-
temporaryPath
public static java.nio.file.Path temporaryPath(java.nio.file.Path parent, java.lang.String key) throws java.io.IOException- Throws:
java.io.IOException
-
fileAttributesIfExists
public static @Nullable java.nio.file.attribute.BasicFileAttributes fileAttributesIfExists(java.nio.file.Path file)
-
-