Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #17498 [Filesystem] Add a cross-platform readlink method (tga…
…lopin) This PR was merged into the 3.2-dev branch. Discussion ---------- [Filesystem] Add a cross-platform readlink method | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - `readlink()` and `realpath()` have a completely different behavior under Windows and Unix: - `realpath()` resolves recursively the children links of a link until a final target is found on Unix and resolves only the next link on Windows ; - `readlink()` resolves recursively the children links of a link until a final target is found on Windows and resolves only the next link on Unix ; I propose to solve this by implementing a helper method in the Filesystem component that would behave always the same way under all platforms. Commits ------- c36507e [Filesystem] Add a cross-platform readlink/realpath methods for nested links
- Loading branch information
Showing
3 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters