Class VertxFileSystem

  • All Implemented Interfaces:
    org.graalvm.polyglot.io.FileSystem

    public final class VertxFileSystem
    extends Object
    implements org.graalvm.polyglot.io.FileSystem
    • Constructor Detail

      • VertxFileSystem

        public VertxFileSystem​(io.vertx.core.Vertx vertx,
                               String importMap,
                               String... extensions)
    • Method Detail

      • getCWD

        public static String getCWD()
      • parsePath

        public Path parsePath​(URI uri)
        Specified by:
        parsePath in interface org.graalvm.polyglot.io.FileSystem
      • parsePath

        public Path parsePath​(String path)
        Given a path string returns a absolute path relative to the CWD
        Specified by:
        parsePath in interface org.graalvm.polyglot.io.FileSystem
      • createDirectory

        public void createDirectory​(Path dir,
                                    FileAttribute<?>... attrs)
                             throws IOException
        Specified by:
        createDirectory in interface org.graalvm.polyglot.io.FileSystem
        Throws:
        IOException
      • delete

        public void delete​(Path path)
                    throws IOException
        Specified by:
        delete in interface org.graalvm.polyglot.io.FileSystem
        Throws:
        IOException
      • createLink

        public void createLink​(Path link,
                               Path existing)
                        throws IOException
        Specified by:
        createLink in interface org.graalvm.polyglot.io.FileSystem
        Throws:
        IOException
      • createSymbolicLink

        public void createSymbolicLink​(Path link,
                                       Path target,
                                       FileAttribute<?>... attrs)
                                throws IOException
        Specified by:
        createSymbolicLink in interface org.graalvm.polyglot.io.FileSystem
        Throws:
        IOException
      • readSymbolicLink

        public Path readSymbolicLink​(Path link)
                              throws IOException
        Specified by:
        readSymbolicLink in interface org.graalvm.polyglot.io.FileSystem
        Throws:
        IOException
      • toAbsolutePath

        public Path toAbsolutePath​(Path path)
        Specified by:
        toAbsolutePath in interface org.graalvm.polyglot.io.FileSystem
      • setCurrentWorkingDirectory

        public void setCurrentWorkingDirectory​(Path currentWorkingDirectory)
        Specified by:
        setCurrentWorkingDirectory in interface org.graalvm.polyglot.io.FileSystem
      • isSameFile

        public boolean isSameFile​(Path path1,
                                  Path path2,
                                  LinkOption... options)
                           throws IOException
        Specified by:
        isSameFile in interface org.graalvm.polyglot.io.FileSystem
        Throws:
        IOException
      • getTempDirectory

        public Path getTempDirectory()
        Specified by:
        getTempDirectory in interface org.graalvm.polyglot.io.FileSystem