3 ms·
It's a matter of a client UI implementation. You can't delete a non-empty folder with POSIX API on common filesystems or FTP too. However, there are file manag
by dchest 3y ago
It's a matter of a client UI implementation. You can't delete a non-empty folder with POSIX API on common filesystems or FTP too.
However, there are file managers, FTP clients, and S3 clients that will do that for you by deleting individual files.
- _flux 3y agoBut if the S3 semantics are not helping you, e.g. with multiple clients doing copy/move/delete operations in the hierarchy you could still end up with files that are not in "directories". So essentially an S3 file manager must be able to handle the situation where there are files without a "directory"—and that I assume is also the most common case as well for S3. Might just not have the "directories" in the first place.
- klodolph 3y agoI have personally never seen the 0-byte files people keep talking about here. In every S3 bucket I’ve ever looked at, the “directories” don’t exist at all. If you have a dir/file1.txt and dir/file2.txt, there is NO such object as dir. Not even a placeholder.
- _flux 3y agoYeah, this post was the first one I had even heard of them.