Class OsSpecificUtil

    • Constructor Detail

      • OsSpecificUtil

        private OsSpecificUtil()
        Hiding public and default constructor.
    • Method Detail

      • updateDirectory

        public static void updateDirectory​(Path directory)
                                    throws IOException
        Updates the specified directory by resolving symbolic links, ensuring it exists, and creating any necessary parent directories. If the provided path is a symbolic link, it resolves it to the actual directory, throwing an IOException if the resolved path is not a directory. Creates directories if they do not exist.
        directory - The path to the directory to be updated.
        IOException - If an I/O error occurs or if the resolved symbolic link is not a directory.