[Feature Request] `weed shell` command to toggle empty folder deletion
Going through the codebase with AI, it looks like there is an Seaweed-X-Amz-Allow-Empty-Folders attribute that controls whether the empty folder cleaner runs on a bucket. It looks like the attribute is set when the directory is mounted with weed mount. However, I have a bucket that is used both for s3 (and needs S3 compatibility) and for mounting.
Could you add a weed shell command to flip the flag to false (and probably also weed mount logic not to flip the flag if it is deliberately set to false)?
Also, maybe in this case, it would be more correct (for S3 compatibility) to have buckets for Spark set Seaweed-X-Amz-Allow-Empty-Folders=true (since I believe that is why folder deletion is designed to be delayed) and have the default behavior be immediate empty folder deletion.
For context, I am using this S3 bucket as an external storage for Nextcloud and, ideally, either CommonPrefix deletion would be immediate or all filer directories would implicitly have 0 byte objects in S3 (returned by ListObjectsV2) and deletion would be immediate and explicit.
Source: seaweedfs/seaweedfs