Skip to content

Implement a more generic constructor for rootfs #810

Closed as not planned
Closed as not planned
@mcandre

Description

os.DirFs(pth) seems to have a fatal design flaw: It invites the user to hardcode either a UNIX (e.g., /) or Windows (e.g., C:) root directory name.

Please implement a 0-ary constructor for filefs that automatically selects an appropriate root directory name in an operating system independent way.

Note that Cygwin environments can reasonably follow UNIX conventions (/); It's not the executable platform so much as the runtime environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions