Interface FileSystemsAgent


public interface FileSystemsAgent
Agent providing means to access file systems.
Since:
5.1.42
  • Field Details

  • Method Details

    • getMemoryFileSystem

      FileSystem<? extends FileHandle> getMemoryFileSystem()
      Provides a memory-based file system instance.
      Returns:
      A file system object.
      Since:
      5.1.42
    • getOSFileSystem

      FileSystem<? extends FileHandle> getOSFileSystem(@NotNull @NotNull String rootPath)
      Provides an OS-based file system instance having the given path as root.
      Parameters:
      rootPath - The root path for the file system.
      Returns:
      The according file system object.
      Since:
      5.1.42
    • getRelativeFileSystem

      FileSystem<? extends FileHandle> getRelativeFileSystem(@NotNull @NotNull FileHandle root) throws IllegalArgumentException
      Provides a file system instance having the given root, which must represent a directory.
      Parameters:
      root - The root of the file system.
      Returns:
      An according file system object.
      Throws:
      IllegalArgumentException - if the given root does not represent a directory.
      Since:
      5.1.42