getIndex

gets the index of a file by its ID

number getIndex(string id);

Parameters

idstringthe id of a file

Returns

numberthe index of a file - its position in the Vault queue

Example

var index = vault.data.getIndex("file_id");

See also
Back to top