Page MenuHomePhabricator

Escape glob characters for FileFinder's withSuffix() and withName()
ClosedPublic

Authored by epriestley on Jan 31 2018, 9:32 PM.
Tags
None
Referenced Files
F19053445: D18981.diff
Nov 28 2025, 8:40 AM
F18942480: D18981.id.diff
Nov 11 2025, 12:12 PM
F18868351: D18981.diff
Nov 4 2025, 6:08 AM
F18844985: D18981.id45520.diff
Oct 29 2025, 8:48 AM
F18835697: D18981.id45515.diff
Oct 26 2025, 6:07 PM
F18783579: D18981.id.diff
Oct 13 2025, 8:14 AM
F18650528: D18981.diff
Sep 21 2025, 12:57 AM
F18649699: D18981.id45516.diff
Sep 20 2025, 10:01 PM
Subscribers
None

Details

Summary

Depends on D18980. When you search for files withSuffix('t*t'), that should match that suffix, literally, in a portable way.

Test Plan

Added unit tests and made them pass.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Create a temporary directory and write all the glob garbage to it instead.
amckinley added inline comments.
src/filesystem/__tests__/FileFinderTestCase.php
128–130

thumbsup.gif (320×300 px, 6 MB)

This revision is now accepted and ready to land.Jan 31 2018, 10:02 PM
This revision was automatically updated to reflect the committed changes.