Page MenuHomeDevCentral

Fetch files from a directory
ClosedPublic

Authored by dereckson on Feb 7 2022, 02:34.
Tags
None
Referenced Files
F24013108: D2500.id6297.diff
Sun, Feb 8, 18:05
F24011319: D2500.id6298.diff
Sun, Feb 8, 17:43
F24010572: D2500.id6298.diff
Sun, Feb 8, 17:28
F24010494: D2500.id6297.diff
Sun, Feb 8, 17:28
F24006335: D2500.id6298.diff
Sun, Feb 8, 15:53
F24000120: D2500.id6298.diff
Sun, Feb 8, 14:03
F23993830: D2500.id6298.diff
Sun, Feb 8, 12:17
F23993785: D2500.id6297.diff
Sun, Feb 8, 12:17
Subscribers
None

Details

Summary

Mirror the File class into a Directory class,
with similar methods.

Allow to glob files in a directory and gets the result
as a collection of File instances.

Use cases

Nasqueron Notifications, Auth Grove and Zed can benefit from
autodiscovery mechanism where all files in a directory are
loaded as events, services or, for Zed, health checks.

Sites also use glob to find files like images in a directory.

With those new Directory and glob components, result will use
the File class, offering an unified interface to query file
and path information.

Test Plan
  • Unit tests provided
  • Zed uses Directory::glob method for SiteHealth engine (see T1678).

Diff Detail

Repository
rKOT Keruald OmniTools
Lint
Lint Skipped
Unit
Tests Skipped
Branch
main
Build Status
Buildable 3893
Build 4144: arc lint + arc unit

Event Timeline

dereckson created this revision.

Test was in bad path/namespace. Checking method signatures.

This revision is now accepted and ready to land.Feb 7 2022, 02:41
This revision was automatically updated to reflect the committed changes.