Page MenuHomeDevCentral

Solve Obsidian Workspaces interaction needs with files and directories
ClosedPublic

Authored by dereckson on Aug 22 2026, 04:21.
Tags
None
Referenced Files
F52746792: D4186.id10958.diff
Sun, Oct 4, 11:18
F52746342: D4186.id10965.diff
Sun, Oct 4, 11:10
F52648690: D4186.id10958.diff
Sat, Oct 3, 19:42
Unknown Object (File)
Sat, Oct 3, 09:19
Unknown Object (File)
Fri, Oct 2, 09:57
Unknown Object (File)
Thu, Oct 1, 10:23
Unknown Object (File)
Wed, Sep 30, 09:14
Unknown Object (File)
Tue, Sep 29, 23:01
Subscribers
None

Details

Summary

Obsidian Workpaces searches files with a specific patterns in a directory
to list them or read them as filesystem database.

Add convenient utilities method to File and Directory to support those needs.

Test Plan

Tested with Obsidian Workspaces code in D4185.

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Tests pass:

$ phpunit omnitools/tests/
Switching to Composer phpunit:
PHPUnit 12.5-dev by Sebastian Bergmann and contributors.

Runtime:       PHP 8.4.21
Configuration: /datacube/dereckson/dev/nasqueron/keruald/keruald/phpunit.xml

...............................................................  63 / 740 (  8%)
............................................................... 126 / 740 ( 17%)
............................................................... 189 / 740 ( 25%)
............................................................... 252 / 740 ( 34%)
............................................................... 315 / 740 ( 42%)
............................................................... 378 / 740 ( 51%)
............................................................... 441 / 740 ( 59%)
............................................................... 504 / 740 ( 68%)
............................................................... 567 / 740 ( 76%)
............................................................... 630 / 740 ( 85%)
............................................................... 693 / 740 ( 93%)
...............................................                 740 / 740 (100%)

Time: 00:00.609, Memory: 10.00 MB

OK (740 tests, 2091 assertions)
dereckson retitled this revision from Solve basic CMS interaction needs with files and directories to Solve Obsidian Workspaces interaction needs with files and directories.Aug 23 2026, 13:23

Avoid count directories. Handle IO errors.

This revision is now accepted and ready to land.Aug 23 2026, 14:13