Skip to content

Commit

Permalink
Print Path in windows for debugging
Browse files Browse the repository at this point in the history
Print Path in windows for debugging

Print Path in windows for debugging

Stip components of tar

Stip components of tar
  • Loading branch information
kartikdutt18 committed May 27, 2020
1 parent c118434 commit 8369c6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ class Utils

command = "tar --force-local -xvzf " +
boost::filesystem::current_path().string() + "\\" +
pathToArchiveTemp;
pathToArchiveTemp + " -C " +
boost::filesystem::current_path().string() + "\\" +
pathForExtractionTemp + " --strip-components=1";
std::cout << command << " \n " << boost::filesystem::current_path().string();
#else
command = command + boost::filesystem::current_path().string() + "/" +
pathToArchive + " -C " + boost::filesystem::current_path().string() +
Expand Down Expand Up @@ -200,7 +203,7 @@ class Utils
// Extract Files.
if (zipFile)
{
Utils::ExtractFiles(downloadPath, "./../data/");
Utils::ExtractFiles(downloadPath, pathForExtraction);
}

return 0;
Expand Down

0 comments on commit 8369c6b

Please sign in to comment.