dirkpetersen / froster

Froster is a user-friendly archiving tool for teams that move data between Posix file systems and S3 like object storage systems such as AWS Glacier
Apache License 2.0
17 stars 1 forks source link

Check bucket access questions #27

Closed victormachadoperez closed 7 months ago

victormachadoperez commented 7 months ago

Inside the AWSBoto class, there are two functions:

check_bucket_access: This function checks whether the current AWS credentials have access to a given bucket_name.

check_bucket_access_folders: This function takes a folder as a parameter, searches for the folder in the "froster-archives.json" file, retrieves the bucket containing that folder, and checks whether the current AWS credentials have access to this bucket.

The issue I'm facing is related to the check_bucket_access_folder function's folder parameter. It appears that there should be a "folders" argument to be parsed by argparse, but I can't find it anywhere. Something like froster credentials folder ~/Desktop/froster. It is not documented in the parse_arguments() function

Could you clarify this for me?

Thanks.

dirkpetersen commented 7 months ago

the folders argument returns a list of folders from the command line but it is only available in the index, archive, restore and mount sub command argparse https://github.com/dirkpetersen/froster/blob/main/froster.py#L5541C1-L5544C1