June 2017 / tech

A simple fun project occurred to me - exposing the web as a local filesystem. Shouldn't be too hard (and I'm sure it's never been done before with the exact same name 1 2 3), and it might have some interesting use cases. For instance, uploading a new version of a website by copying files into the directory, or backing up a site with cp -a.

Two great sources:

Sample code from fusepy was really helpful in establishing the minimum functional class for ls (as well as being an essential dependency for the project). That minimal functional class is linked here, and should provide a handy starting point for your filesystem endeavors.

Edit: and hey, a link to the repo on github.