localfs
    Preparing search index...

    Function toArray

    • Converts a POSIX path string into an array for processing through other methods.

      toArray("/folder/folder2/../file")
      // returns ["", "folder", "folder2", "..", "file"]
      // where "" is root

      Parameters

      • path: string = ""

      Returns string[]