Improved the entry listing

This commit is contained in:
2024-02-18 14:56:36 +01:00
parent cf6e692289
commit 444bbc6ebe
7 changed files with 69 additions and 8 deletions

View File

@@ -489,3 +489,19 @@ Status TrimEntryDisk(const char* entry_identifier) {
return status;
}
Status GetEntryDiskInfo(const char* entry_identifier, DiskInfo* _info) {
*_info = (DiskInfo){0};
// Get the disk path
char* entry_disk_path = NULL;
Status status = GetEntryDiskPath(entry_identifier, &entry_disk_path);
if (status != SUCCESS)
return status;
// Get the disk info
status = GetDiskInfo(entry_disk_path, _info);
free(entry_disk_path);
return status;
}