Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/filelist.c
| Show First 20 Lines • Show All 2,498 Lines • ▼ Show 20 Lines | while (i--) { | ||||
| entry->relpath = MEM_dupallocN(files[i].relname); | entry->relpath = MEM_dupallocN(files[i].relname); | ||||
| entry->st = files[i].s; | entry->st = files[i].s; | ||||
| BLI_join_dirfile(full_path, FILE_MAX, root, entry->relpath); | BLI_join_dirfile(full_path, FILE_MAX, root, entry->relpath); | ||||
| char *target = full_path; | char *target = full_path; | ||||
| /* Set initial file type and attributes. */ | /* Set initial file type and attributes. */ | ||||
| entry->attributes = BLI_file_attributes(full_path); | entry->attributes = BLI_file_attributes(full_path); | ||||
| if (S_ISDIR(files[i].s.st_mode)) { | if (S_ISDIR(files[i].s.st_mode) | ||||
| #ifdef __APPLE__ | |||||
| && !(ED_path_extension_type(full_path) & FILE_TYPE_APPLICATIONBUNDLE) | |||||
| #endif | |||||
| ) { | |||||
| entry->typeflag = FILE_TYPE_DIR; | entry->typeflag = FILE_TYPE_DIR; | ||||
| } | } | ||||
| /* Is this a file that points to another file? */ | /* Is this a file that points to another file? */ | ||||
| if (entry->attributes & FILE_ATTR_ALIAS) { | if (entry->attributes & FILE_ATTR_ALIAS) { | ||||
| entry->redirection_path = MEM_callocN(FILE_MAXDIR, __func__); | entry->redirection_path = MEM_callocN(FILE_MAXDIR, __func__); | ||||
| if (BLI_file_alias_target(entry->redirection_path, full_path)) { | if (BLI_file_alias_target(entry->redirection_path, full_path)) { | ||||
| if (BLI_is_dir(entry->redirection_path)) { | if (BLI_is_dir(entry->redirection_path)) { | ||||
| ▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines | |||||