Class UnixOperations

java.lang.Object
net.ssehub.easy.basics.os.UnixOperations

public class UnixOperations extends Object
Utility functions for operations on a Unix/Linux/(Mac) operating system.
Author:
Sascha El-Sharkawy
  • Constructor Details

    • UnixOperations

      private UnixOperations()
      Avoid initialization of utility class.
  • Method Details

    • resolveSymbolicLink

      public static File resolveSymbolicLink(File file) throws IOException
      Detect symbolic links and to resolve the original file, recursively.
      Parameters:
      file - A file or folder which may be a symbolic link.
      Returns:
      The same file if it is null or if it is not a symbolic link, otherwise the target of the link will be returned.
      Throws:
      IOException - If an I/O error occurs, e.g. this command was executed on Windows
      See Also: