separation of file-only, folder-only and file-or-folder selection paths, slight tweaks to filesystem lister behavior for each; other small visual tweaks/fixes

This commit is contained in:
Ryan Fleury
2024-01-23 13:47:14 -08:00
parent 7c3de4fe5b
commit 0c674066e0
10 changed files with 423 additions and 415 deletions
+8
View File
@@ -2087,6 +2087,10 @@ df_entity_from_path(String8 path, DF_EntityFromPathFlags flags)
next_parent->timestamp = file_properties.modified;
next_parent->flags |= DF_EntityFlag_IsFolder * !!(file_properties.flags & FilePropertyFlag_IsFolder);
next_parent->flags |= DF_EntityFlag_IsMissing * !!(file_properties.created == 0);
if(path_part_n->next != 0)
{
next_parent->flags |= DF_EntityFlag_IsFolder;
}
}
}
else
@@ -2142,6 +2146,10 @@ df_entity_from_path(String8 path, DF_EntityFromPathFlags flags)
next_parent->timestamp = file_properties.modified;
next_parent->flags |= DF_EntityFlag_IsFolder * !!(file_properties.flags & FilePropertyFlag_IsFolder);
next_parent->flags |= DF_EntityFlag_IsMissing * !!(file_properties.created == 0);
if(path_part_n->next != 0)
{
next_parent->flags |= DF_EntityFlag_IsFolder;
}
}
}
else