There are already solutions that can mount s3 as file system, for years. I know it is more widespread but I work for Microsoft Azure and I provided a solution that didn't exist for Azure.
I coded it and tested it a little bit. Not all features work and I don't recommend you to use it. OSX issues kinda different filesystem calls that I should have been handled but I didn't.