return false;
}
if (strcmp(attribute, "kMDItemDisplayName") == 0
- || strcmp(attribute, "kMDItemFSName") == 0) {
+ || strcmp(attribute, "kMDItemFSName") == 0
+ || strcmp(attribute, "_kMDItemFileName") == 0) {
p = strrchr(nfd_path, '/');
if (p) {
result = dalloc_stradd(meta, p + 1);
if (result != 0) {
return false;
}
- } else if (strcmp(attribute, "kMDItemFSSize") == 0) {
+ } else if (strcmp(attribute, "kMDItemFSSize") == 0
+ || strcmp(attribute, "kMDItemLogicalSize") == 0)
+ {
uint64var = sp->st_ex_size;
result = dalloc_add_copy(meta, &uint64var, uint64_t);
if (result != 0) {
if (result != 0) {
return false;
}
+ } else if (strcmp(attribute, "kMDItemLastUsedDate") == 0) {
+ sl_time = convert_timespec_to_timeval(sp->st_ex_atime);
+ result = dalloc_add_copy(meta, &sl_time, sl_time_t);
+ if (result != 0) {
+ return false;
+ }
+ } else if (strcmp(attribute, "kMDItemContentCreationDate") == 0) {
+ sl_time = convert_timespec_to_timeval(sp->st_ex_btime);
+ result = dalloc_add_copy(meta, &sl_time, sl_time_t);
+ if (result != 0) {
+ return false;
+ }
} else {
result = dalloc_add_copy(meta, &nil, sl_nil_t);
if (result != 0) {
return true;
}
- sb = smb_fname->st;
+ fdos_mode(smb_fname->fsp);
+
+ sb = smb_fname->fsp->fsp_name->st;
status = smbd_check_access_rights_fsp(slq->mds_ctx->conn->cwd_fsp,
smb_fname->fsp,