awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 770 forks source link

Refactor creation of the ~/.aws/shell/ directory #65

Open donnemartin opened 8 years ago

donnemartin commented 8 years ago

We might want to consolidate the places where we create the ~/.aws/shell/ directory (and sub directories). I count four separate locations now in the codebase (including this new call) where we are calling os.makedirs.

As initially discussed in https://github.com/awslabs/aws-shell/pull/62.

When we do consolidate it seems cleaner to go with the try/catch approach vs the check/create approach. Here's a good StackOverflow post with details.