That should get much easier in macOS Sequoia with FSKit.
https://developer.apple.com/documentation/fskit/
That should get much easier in macOS Sequoia with FSKit.
https://developer.apple.com/documentation/fskit/