Skip to content
Snippets Groups Projects
Commit b61aab5f authored by LE QUEC Nicolas's avatar LE QUEC Nicolas Committed by Jean-Baptiste Kempf
Browse files

directory: get mtime and size of the item

Refs #25747
parent 7190daf3
No related branches found
Tags 3.0.17.3
No related merge requests found
......@@ -207,8 +207,15 @@ static int DirRead (stream_t *access, input_item_node_t *node)
ret = VLC_ENOMEM;
break;
}
input_item_t *p_item;
ret = vlc_readdir_helper_additem(&rdh, uri, NULL, entry, type,
ITEM_NET_UNKNOWN, NULL);
ITEM_NET_UNKNOWN, &p_item);
if (ret == VLC_SUCCESS && p_item && st.st_mtime >= 0 && st.st_size >= 0)
{
input_item_AddStat( p_item, "mtime", st.st_mtime );
input_item_AddStat( p_item, "size", st.st_size );
}
free(uri);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment