For a term paper, I need to write a cloud data storage (a simplified version of Dropbox / Google Drive). NodeJS must be used as a language. I created a server on Express, and implemented the ability to upload a file to the server, and then store it in a Mongo-> GridFS database . But how to organize a directory tree, something like a file system. There is an idea to use one collection in Mongo to store the tree, the end points are documents containing the file ID in the GridFS.
- Is it a bicycle?
- Is there an already implemented npm module for creating such a hierarchy (the available wrappers for GridFS FUSE are not complete and do not allow you to create folders).