[Download] Synchronously checking access to file 47/168447/3
authorSzymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
Fri, 26 Jan 2018 14:44:52 +0000 (15:44 +0100)
committerSzymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
Fri, 2 Feb 2018 12:17:42 +0000 (13:17 +0100)
[Verification] TCT Download equal to 100%

Change-Id: Icf1a4d3c3b1bc54aa9b3b67bf2286ba9913ab021
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
src/download/download_instance.cc

index 52923da..b3d6778 100644 (file)
@@ -483,6 +483,11 @@ void DownloadInstance::DownloadManagerStart(const picojson::value& args, picojso
     }
   }
 
+  CHECK_STORAGE_ACCESS(diPtr->destination.empty()
+                           ? common::FilesystemProvider::Create().GetRealPath("downloads")
+                           : diPtr->destination,
+                       &out);
+
   if (!args.get("fileName").is<picojson::null>()) {
     if (args.get("fileName").is<std::string>() && args.get("fileName").get<std::string>() != "") {
       diPtr->file_name = args.get("fileName").get<std::string>();