Cleanup: avoid BLI_path_basename when the filename is known

This commit is contained in:
Campbell Barton
2023-05-08 12:54:54 +10:00
parent c3365666e5
commit 55f7f082a8

View File

@@ -553,9 +553,7 @@ static bool delete_recursive(const char *dir)
i = filelist_num = BLI_filelist_dir_contents(dir, &filelist);
fl = filelist;
while (i--) {
const char *filename = BLI_path_basename(fl->path);
if (FILENAME_IS_CURRPAR(filename)) {
if (FILENAME_IS_CURRPAR(fl->relname)) {
/* Skip! */
}
else if (S_ISDIR(fl->type)) {