Home
Software
Writings
Day 21: s3 create new dir, last modification time
in: Diary of a solo dev building a web app
Jun 29, 2022
💡
This is a dev diary of implementing Filerion, a web-based file manager for online storage (Dropbox, OneDrive, Google Drive, s3 and more).
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.filerion in 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.
Written on Jun 29 2022.
home
Found a mistake, have a comment? Let me know.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you: