8000 Add cross-platform readLink method by tgalopin · Pull Request #19 · webmozart/path-util · GitHub
[go: up one dir, main page]

Skip to content

Add cross-platform readLink method #19

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

Closed
wants to merge 1 commit into from
Closed

Add cross-platform readLink method #19

wants to merge 1 commit into from

Conversation

tgalopin
Copy link
Contributor

For various places in puli/repository (especially FilesystemRepository and its tests), we need to resolve links. For the moment, we have a private method in FilesystemRepository. I propose to add it in path-util as it avoids code dupplication and it let other packages use this. I would use this to fix a part of puli/repository#91.

I'm not sure about the method signature, don't hesitate to tell me what you think :) .

@webmozart
Copy link
Owner

I'm not sure this is within scope for this package. At the moment, this package is completely unaware of the filesystem. It only does string manipulation on path strings.

This method rather belongs into symfony/filesystem or similar, in my opinion.

@tgalopin
Copy link
Contributor Author

I wasn't sure either but I thought as we access environment variables in some methods, it would be fine to access the filesystem. I need this method in the FilesystemRepository tests and I don't want to dupplicate the code. Where do you think I could put this?

@tgalopin
Copy link
Contributor Author

I did a PR on symfony/filesystem: symfony/symfony#17498.

In the meantime, where could we put this?

@tgalopin tgalopin closed this Jan 23, 2016
@tgalopin tgalopin deleted the readlink branch July 29, 2016 12:11
@tgalopin
Copy link
Contributor Author
tgalopin commented Aug 3, 2016

The PR was merged: symfony/symfony#17498

@webmozart
Copy link
Owner

Cool, thanks for the note! :) 👍

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

Successfully merging this pull request may close these issues.

2 participants
0