Class TempDirectory.CloseablePath

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.file.Path dir  
    • Constructor Summary

      Constructors 
      Constructor Description
      CloseablePath​(java.nio.file.Path dir)  
    • Field Detail

      • dir

        private final java.nio.file.Path dir
    • Constructor Detail

      • CloseablePath

        CloseablePath​(java.nio.file.Path dir)
    • Method Detail

      • get

        java.nio.file.Path get()
      • deleteAllFilesAndDirectories

        private java.util.SortedMap<java.nio.file.Path,​java.io.IOException> deleteAllFilesAndDirectories()
                                                                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • resetPermissions

        private static void resetPermissions​(java.nio.file.Path path)
      • createIOExceptionWithAttachedFailures

        private java.io.IOException createIOExceptionWithAttachedFailures​(java.util.SortedMap<java.nio.file.Path,​java.io.IOException> failures)
      • tryToDeleteOnExit

        private java.nio.file.Path tryToDeleteOnExit​(java.nio.file.Path path)
      • relativizeSafely

        private java.nio.file.Path relativizeSafely​(java.nio.file.Path path)