Improved the entry listing
This commit is contained in:
16
src/entry.c
16
src/entry.c
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user