aws-shell icon indicating copy to clipboard operation
aws-shell copied to clipboard

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

Open donnemartin opened this issue 9 years ago • 0 comments

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.

donnemartin avatar Dec 17 '15 10:12 donnemartin