Class SymlinkUtils


  • public class SymlinkUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SymlinkUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File createSymbolicLink​(java.io.File symlink, java.io.File target)  
      static java.io.File readSymbolicLink​(java.io.File symlink)
      Reads the target of the symbolic link
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SymlinkUtils

        public SymlinkUtils()
    • Method Detail

      • readSymbolicLink

        @Nonnull
        public static java.io.File readSymbolicLink​(@Nonnull
                                                    java.io.File symlink)
                                             throws java.io.IOException
        Reads the target of the symbolic link
        Parameters:
        symlink - A file that is a symlink
        Returns:
        A file that is the target of the symlink
        Throws:
        java.io.IOException
      • createSymbolicLink

        @Nonnull
        public static java.io.File createSymbolicLink​(@Nonnull
                                                      java.io.File symlink,
                                                      java.io.File target)
                                               throws java.io.IOException
        Throws:
        java.io.IOException