fix bug: E739: Cannot create directory: foo/bar/, but the directory was created just fine.
Merge pull request #17 from houzy/upstream

fix bug: E739: Cannot create directory: foo/bar/
Merge commit 'b1d2aa6b0289ccbc7e6cd2685255bf5a14103816'