Class FileUtils


  • public final class FileUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void atomicMove​(java.nio.file.Path source, java.nio.file.Path destination)  
      static void createDirectoriesSymlinkSafe​(java.nio.file.Path directory)  
      static @Nullable java.nio.file.attribute.BasicFileAttributes fileAttributesIfExists​(java.nio.file.Path file)  
      static java.nio.file.Path temporaryPath​(java.nio.file.Path parent, java.lang.String key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)