Create all required subdirectories when downloading a file (+ test with a long set of nested sub directories)