fog/fog — pull request #1193 by tfwright (2012-10-06 22:37:51+00:00)
Title: Ignore existing directory when creating on local storage

I'm trying to use fog with local storage in my dev environment and s3 for my production environment (since they use the same api--sweet). However I ran into an issue when creating directories. s3 simply returns a pre-existing bucket when you try to re-create it, but locally Dir.mkdir returns an error. This change simply checks for a currently existing directory before trying to create.

I added a test, but I haven't used Shindo and I couldn't seem to get either the file or directory tests to run under local (using shindo tests/local)...