Skip to content

FileSystem: missing a function to construct an absolute path from a relative one #381

Open
@cloudshiftchris

Description

While SytemFileSystem.resolve is documented as throwing FileNotFoundException this behaviour seems unnecessary for the stated goal of resolving an absolute path.

Behaviour is inconsistent with java.io.File.absolutePath (and canonicalPath), neither of which fail on a non-existing file.

There doesn't appear to be any other mechanism to get an absolute path from a Path.

Proposing that SytemFileSystem.resolve does not throw FileNotFoundException, instead leaving it to consumers of the Path to handle existence in the context of using that path.

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