summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--local.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/local.go b/local.go
index e66f477..0fceca2 100644
--- a/local.go
+++ b/local.go
@@ -222,7 +222,7 @@ func (a *LocalConn) Download(bucket string, key string, path string) error {
// Upload just copies the file from path to TempDir/bucket/key
func (a *LocalConn) Upload(bucket string, key string, path string) error {
d := filepath.Join(a.TempDir, bucket, filepath.Dir(key))
- err := os.Mkdir(d, 0700)
+ err := os.MkdirAll(d, 0700)
if err != nil && !os.IsExist(err) {
return fmt.Errorf("Error creating temporary directory: %v", err)
}