Module omix.api
Package omix.util.io

Class FilePathAnalyzer

java.lang.Object
omix.util.io.FilePathAnalyzer

public class FilePathAnalyzer
extends Object
This class helps to save file paths relative to the saved file.
Author:
Dr. Peter Droste
  • Constructor Details

  • Method Details

    • toRelativePath

      public static File toRelativePath​(File file, File directory)
      This method returns a relative representation of the absolute path in relation to the directory.
      Parameters:
      file -
      url -
      Returns:
    • toAbsolutePath

      public static File toAbsolutePath​(File file, File directory)
      Return an absolute representation of the given file in relation to the given directory.
      Parameters:
      file -
      directory -
      Returns:
      absolute file