From 616afed985266ed8ce1851d744808645ff961829 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Thu, 11 Jul 2013 18:50:29 -0400 Subject: ignore lost+found in all the places --- twrp-functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.cpp') diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 1d2d63229..e54e760ab 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -185,7 +185,7 @@ unsigned long long TWFunc::Get_Folder_Size(const string& Path, bool Display_Erro while ((de = readdir(d)) != NULL) { - if (de->d_type == DT_DIR && strcmp(de->d_name, ".") != 0 && strcmp(de->d_name, "..") != 0) + if (de->d_type == DT_DIR && strcmp(de->d_name, ".") != 0 && strcmp(de->d_name, "..") != 0 && strcmp(de->d_name, "lost+found") != 0) { dutemp = Get_Folder_Size((Path + "/" + de->d_name), Display_Error); dusize += dutemp; -- cgit v1.2.3