Skip to content

[C++] Add FileSystem::MakeUri() to serialize file locations to URIs #18316

@asfimport

Description

@asfimport

Making the transform FS -> URI bijective would greatly simplify unambiguous location of files and serialization of filesystems. Something like:

Result<std::string> FileSystem::MakeUri(std::string path = "/");

Difficulties:

  • SubTreeFileSystem::MakeUri("/") would probably return a URI referring to its base directory in the wrapped filesystem, which wouldn't roundtrip to a SubTreeFileSystem with FileSystemFromUri
  • Not all of s3's parameters are supported in a URI

Reporter: Ben Kietzman / @bkietz

Note: This issue was originally created as ARROW-10222. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions