From c7360dd26343b704350b7bc0911221c56ecf4695 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Sat, 25 Jan 2014 15:02:57 -0500 Subject: Clear the relative directory before passing on to twrpTar with the static du object. Otherwise we will not backup /system/media etc Change-Id: Ib62af6ad8596aa18bf48cb750e2ecf442dadc627 --- twrpDU.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'twrpDU.hpp') diff --git a/twrpDU.hpp b/twrpDU.hpp index 04527cd61..dac15f126 100644 --- a/twrpDU.hpp +++ b/twrpDU.hpp @@ -40,8 +40,9 @@ public: uint64_t Get_Folder_Size(const string& Path); // Gets the folder's size using stat void add_absolute_dir(string Path); void add_relative_dir(string Path); - bool check_skip_dirs(string& dir); // Checks a list of directories to see if we should skip it + bool check_skip_dirs(string& dir); vector get_absolute_dirs(void); + void clear_relative_dir(string dir); private: vector absolutedir; vector relativedir; -- cgit v1.2.3