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

Additions to PathRef #105

Closed
dsherret opened this issue Feb 12, 2023 · 3 comments · Fixed by #268
Closed

Additions to PathRef #105

dsherret opened this issue Feb 12, 2023 · 3 comments · Fixed by #268
Labels
enhancement New feature or request

Comments

@dsherret
Copy link
Owner

dsherret commented Feb 12, 2023

  • components(): Iterator<string>
  • startsWith(text: string | PathRef | URL): boolean;
  • endsWith(text: string): boolean;
  • equals(path: string | URL | PathRef): boolean;
  • linkTo / linkToSync methods (copy symlinkTo)
@Yohe-Am
Copy link
Contributor

Yohe-Am commented Dec 11, 2023

Some ideas:

  • Copy directories
  • removeSafe that checks if file exists first or just NOENT error
  • Path globbing

Willing to write a PR for these.

@dsherret
Copy link
Owner Author

dsherret commented May 4, 2024

@Yohe-Am I think copying directories is implemented now. Let's open specific issues for specific features from now on. By removeSafe, do you just mean a method that would not throw when the file doesn't exit?

@Yohe-Am
Copy link
Contributor

Yohe-Am commented May 4, 2024

removeSafe, not throw when file doesn't exists

Yep, exactly that. removeIfExists or ensureDeleted some ways it could be named.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants