microsoft / microsoft/litebox

Consider exposing openat/cwd abstraction from FileSystem

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
discussion enhancement layer-litebox
Dominant language
Rust
Stars
2.7k
Forks
144
Avg merge
12h 21m
Merged PRs (30d)
146

Description

Need to think more deeply about which of them makes more sense from an API perspective: we can either expose a current-working-directory (cwd) abstraction and/or an openat style abstraction. Linux provides both, but imho that seems like overkill _at the litebox layer_ (instead, the shim should be in charge of ensuring translation).

I need to think about it a bit more, but I think the most general form is to have an `openat` and _not_ support a `cwd` at all _at the litebox layer (forcing usage of absolute paths always), but more thought is needed before finalizing this decision and implementing it.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the FileSystem API and the issue's comparison of openat and current-working-directory abstractions. Resolve which abstraction belongs at the litebox layer versus the shim, then document the chosen API and implement it once the design is finalized.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.