Package net.ssehub.easy.basics.os
Class UnixOperations
java.lang.Object
net.ssehub.easy.basics.os.UnixOperations
Utility functions for operations on a Unix/Linux/(Mac) operating system.
- Author:
- Sascha El-Sharkawy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileresolveSymbolicLink(File file) Detect symbolic links and to resolve the original file, recursively.
-
Constructor Details
-
UnixOperations
private UnixOperations()Avoid initialization of utility class.
-
-
Method Details
-
resolveSymbolicLink
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:
-