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)
Thu, Apr 25, 1:04 AM
Unknown Object (File)
Fri, Apr 19, 7:58 PM
Unknown Object (File)
Sun, Apr 14, 6:41 AM
Unknown Object (File)
Tue, Apr 2, 5:18 PM
Unknown Object (File)
Sat, Mar 30, 6:46 AM
Unknown Object (File)
Sat, Mar 30, 6:46 AM
Unknown Object (File)
Sat, Mar 30, 6:46 AM
Unknown Object (File)
Mar 14 2024, 4:57 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.