Loading tools/aapt/AaptAssets.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -55,6 +55,7 @@ static bool validateFileName(const char* fileName) static bool isHidden(const char *root, const char *path) static bool isHidden(const char *root, const char *path) { { const char *ext = NULL; const char *type = NULL; const char *type = NULL; // Skip all hidden files. // Skip all hidden files. Loading Loading @@ -83,6 +84,9 @@ static bool isHidden(const char *root, const char *path) } else if (path[strlen(path)-1] == '~') { } else if (path[strlen(path)-1] == '~') { // Skip suspected emacs backup files. // Skip suspected emacs backup files. type = "backup"; type = "backup"; } else if ((ext = strrchr(path, '.')) != NULL && strcmp(ext, ".scc") == 0) { // Skip VisualSourceSafe files and don't chatter about it return true; } else { } else { // Let everything else through. // Let everything else through. return false; return false; Loading Loading
tools/aapt/AaptAssets.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -55,6 +55,7 @@ static bool validateFileName(const char* fileName) static bool isHidden(const char *root, const char *path) static bool isHidden(const char *root, const char *path) { { const char *ext = NULL; const char *type = NULL; const char *type = NULL; // Skip all hidden files. // Skip all hidden files. Loading Loading @@ -83,6 +84,9 @@ static bool isHidden(const char *root, const char *path) } else if (path[strlen(path)-1] == '~') { } else if (path[strlen(path)-1] == '~') { // Skip suspected emacs backup files. // Skip suspected emacs backup files. type = "backup"; type = "backup"; } else if ((ext = strrchr(path, '.')) != NULL && strcmp(ext, ".scc") == 0) { // Skip VisualSourceSafe files and don't chatter about it return true; } else { } else { // Let everything else through. // Let everything else through. return false; return false; Loading