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

samba: get mtime and size of the item

Refs #25747
parent aebc87bf
No related branches found
No related tags found
No related merge requests found
......@@ -169,9 +169,18 @@ static int DirRead (stream_t *p_access, input_item_node_t *p_node )
i_ret = VLC_ENOMEM;
break;
}
struct stat st;
smbc_stat(uri, &st);
input_item_t *p_item;
free(psz_encoded_name);
i_ret = vlc_readdir_helper_additem(&rdh, uri, NULL, p_entry->name,
i_type, ITEM_NET, NULL);
i_type, ITEM_NET, &p_item);
if (i_ret == VLC_SUCCESS && p_item)
{
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