We can simulate directories by allowing / in the file paths. For directory iteration, we'll want to store the directory path hash in the file objects, so we can quickly reject objects. We need to introduce a new object type (Directory metadata) so we can create a hierarchy. Directories can't be renamed because that required renaming all contained files, recursively, but this is probably not that big of a limitation.
We can simulate directories by allowing
/
in the file paths. For directory iteration, we'll want to store the directory path hash in the file objects, so we can quickly reject objects. We need to introduce a new object type (Directory metadata) so we can create a hierarchy. Directories can't be renamed because that required renaming all contained files, recursively, but this is probably not that big of a limitation.