From 05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Tue, 11 Mar 2014 22:08:23 +0100 Subject: Fix skipping of relative paths and lost+found in twrpDU Change-Id: Ib79029fd6237502338b041a6bc2f9e539536d6ad Signed-off-by: Vojtech Bocek --- twrpDU.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'twrpDU.hpp') diff --git a/twrpDU.hpp b/twrpDU.hpp index dac15f126..91f5039a7 100644 --- a/twrpDU.hpp +++ b/twrpDU.hpp @@ -38,9 +38,12 @@ class twrpDU { public: twrpDU(); 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); + void add_absolute_dir(const string& Path); + void add_relative_dir(const string& Path); + bool check_relative_skip_dirs(const string& dir); + bool check_absolute_skip_dirs(const string& path); + bool check_skip_dirs(const string& parent, const string& dir); + bool check_skip_dirs(const string& path); vector get_absolute_dirs(void); void clear_relative_dir(string dir); private: -- cgit v1.2.3