function getFileFromPath(files, path) {
	let currentFolder = files;
	const pathPieces = path.split('/');
	while (pathPieces.length > 1) {
		const folderName = pathPieces.shift();
		currentFolder = getChildFileFromName(currentFolder, folderName).file
			.children;
	}
	// now we should be left with just one value in the pathPieces array - the actual file name
	return getChildFileFromName(currentFolder, pathPieces[0]);
}
Returns the file object and it's index in its parent for the passed path.
If not found, returns {index:-1}
@param {array} files files structure for an item
@param {string} path Path of file to search