Page MenuHomePhabricator

[Wilds] Implement a Filesystem::concatenatePaths(...) method
ClosedPublic

Authored by epriestley on Sep 18 2018, 8:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 12, 9:39 PM
Unknown Object (File)
Sat, Jan 11, 11:01 AM
Unknown Object (File)
Thu, Jan 2, 7:01 PM
Unknown Object (File)
Thu, Dec 19, 4:38 PM
Unknown Object (File)
Dec 16 2024, 2:48 PM
Unknown Object (File)
Dec 11 2024, 10:59 PM
Unknown Object (File)
Dec 11 2024, 10:22 PM
Unknown Object (File)
Dec 8 2024, 8:11 PM
Subscribers
None

Details

Summary

Ref T13098. This is mostly for getting sensible results under Windows, hopefully instead of weird mixed paths with both / and \, at least in more cases.

You can pass in several components like array('/path/to/something/', '/thing.c') and they'll be concatenated with exactly one correct separator.

Test Plan

Used this in the new WorkingCopy stuff, which doesn't run yet. 💁

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley created this revision.
This revision is now accepted and ready to land.Sep 19 2018, 11:18 PM
epriestley added inline comments.
src/filesystem/Filesystem.php
1057

("Hilariously", this is missing a third parameter and doesn't work at all, but got fixed later.)

This revision was automatically updated to reflect the committed changes.