Creates parent directories before creates file

Change-Id: I124f7ce2b731b100e9572d7c5d95206e243ee316
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
DownloadProvider: CS translation

Change-Id: I9f7a3a8496447dc0047ec523e9fc57f9bc0c64d4