* The metadata will be saved in `metadata.json` within the session folder `bucket_name/sanitised_subject_name/sanitised_session_name/sanitised_modality_name/metadata.json`
## S3 bucket naming rules
There are rules that apply to for naming general purpose buckets and directory buckets in Amazon S3 as stated [here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
We have implemented the following rules
* Check for length (between 3 and 63 characters long)
* Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).
* Convert title to lowercase
* Remove any characters other than `a-z`, `0-9`, `.` and `-`
* Bucket names must begin and end with a letter or number.
- Remove `.` or `-` from beginning and end
* Bucket names must not contain two adjacent periods.
- Replace `..` with `.`
- Also, replace `--` with `-` for consistency
* bucket names must not start with the prefix `xn--`