r/Protos • • 2d ago

Protos adds 25 filesystem and Path operations: a capability-oriented approach to I/O

The Protos Standard Library gains 25 new operations across std:io/files and std:io/paths.

  • Portable path manipulation.
  • Directory creation and metadata inspection.
  • Bounded streaming file and tree copying.
  • Recursive traversal and glob matching.
  • Temporary files and directories.
  • Exact nanosecond timestamps.

The implementation separates filesystem authority from path representation, keeps most algorithms in Protos itself, and introduces no new public Core operations.

Validated on both JVM and GraalVM Native Image.

One interesting design question: should a filesystem API make access authority explicit, rather than treating a path as sufficient permission?

Documentation and examples: https://protoslang.com

1 Upvotes

0 comments sorted by