Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

PTP/designs/remote/new path representation

< PTP‎ | designs‎ | remote

New Representation of Paths

We have concluded that due to the above problems we need some kind of new representation for paths. In order to provide interoperability with EFS this new representation will have to be able to convert to a valid URI, but this should only be done when interacting directly with EFS itself, otherwise information may be lost.


Requirements:

  • Track the OS the original path was created for, and be able to extract the original path.
  • Convert the path to another OS
  • Convert the path to be relative to another machine (most likely with a different root directory and potentially on a different OS).
  • Distinguish between local, remote, and local-relative-to-remote paths.
  • Provides a toURI() method
  • Provides utility functions for path manipulation (append, get at segment, get the file extension, etc.) similar to what is contained in IPath.

Back to the top