Swift FilePath Syntactic Operations
FilePath
appeared in System 0.0.1 with a minimal API. This proposal adds API for syntactic operations, which are performed on the structure of the path and thus do not consult with the file system or make any system calls. These include inspecting the structure of paths, modifying paths, and accessing individual components.Additionally, this proposal greatly expands Windows support and enables writing platform-agnostic path manipulation code.
Previously:
Update (2021-01-27): Michael Ilseman:
Version 2 of
FilePath
Syntactic APIs is live.Highlight: splitting
Root
off fromComponent
lets the type system sort out so many corner cases.