Home / Diary of a solo dev building a web app / Day 21: s3 create new dir, last modification time edit
Try Documentalist, my app that offers fast, offline access to 190+ programmer API docs.
I’ve implemented creating new directories in s3.
I’ve changed my mind about how to handle creating new directories in s3.
S3 doesn’t have a concept of directories. It’s just a key / value object storage. A directory is just a naming convention of keys.
Because of that at first I just showed a dialog message trying to explain why you can’t create a directory.
However, when I used the app, it turns out that it’s really convenient to have it so I implemented a creative solution: I create a dummy file
.keep.filerionin new directory to force creating it.
Also implemented showing file last modification date.
Didn’t do as much as I wanted because I spent most of the day doing emergency fixes to my open-source library notionapi. Notion changed their API and I had to update the library.