Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2 API] Path based FS examples #346

Open
zakkor opened this issue Feb 6, 2020 · 2 comments
Open

[v2 API] Path based FS examples #346

zakkor opened this issue Feb 6, 2020 · 2 comments
Labels
Feature request for a feature

Comments

@zakkor
Copy link

zakkor commented Feb 6, 2020

With the old API, I can see methods in the pathfs package that make creating a path-based FS very easy - is this possible with the new API? The readme seems to indicate yes:

Nodes contain references to their parents. As a result, we can derive the path for each Inode, and there is no need for a separate PathFS.

But I can't see how that's relevant - perhaps some examples would make it easier to understand?

@hanwen
Copy link
Owner

hanwen commented Feb 6, 2020

good point. The Path() method on Node should give you enough to implement path based system.

@muryoutaisuu
Copy link
Contributor

I second this. I wanted to update the libraries in my project (which heavily relied on pathfs package in addition to nodefs) and just realized now, it's being discontinued. I'll dig into your mentioned Path() method, then I'll see, how easy it's to migrate to the new API without an example.

@hanwen hanwen added the Feature request for a feature label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request for a feature
Projects
None yet
Development

No branches or pull requests

3 participants