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 --- twrp-functions.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'twrp-functions.hpp') diff --git a/twrp-functions.hpp b/twrp-functions.hpp index 661ca02db..64a45f55b 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -49,6 +49,7 @@ public: static int Get_File_Type(string fn); // Determines file type, 0 for unknown, 1 for gzip, 2 for OAES encrypted static int Try_Decrypting_File(string fn, string password); // -1 for some error, 0 for failed to decrypt, 1 for decrypted, 3 for decrypted and found gzip format static unsigned long Get_File_Size(string Path); // Returns the size of a file + static std::string Remove_Trailing_Slashes(const std::string& path, bool leaveLast = false); // Normalizes the path, e.g /data//media/ -> /data/media #ifndef BUILD_TWRPTAR_MAIN static void install_htc_dumlock(void); // Installs HTC Dumlock -- cgit v1.2.3