grunt-s3 icon indicating copy to clipboard operation
grunt-s3 copied to clipboard

Create directories to file location on download

Open mlmorg opened this issue 11 years ago • 2 comments

If I am downloading a file to /my/file/location.txt and its parent folders do not exist, the grunt task errors out. This fixes that issue and recursively creates the directories before opening a file stream.

mlmorg avatar Nov 19 '13 06:11 mlmorg

Looks good. Could you add a test? (Maybe call testDownload with a more deeply nested path.)

zdexter avatar Dec 11 '13 06:12 zdexter

+1

netpoetica avatar Feb 26 '14 03:02 netpoetica