src/vs/platform/files/browser/htmlFileSystemProvider.ts/HTMLFileSystemProvider/stat
class HTMLFileSystemProvider:	async stat(resource: URI): Promise<IStat> {
		const rootUUID = getRootUUID(resource);

		if (rootUUID) {
			const fileHandle = this.files.get(rootUUID);

			if (fileHandle) {
				const file = await fileHandle.getFile();

				return {
					type: FileType.File,
					mtime: file.lastModified,
					ctime: 0,
					size: file.size
				};
			}

			const directoryHandle = this.directories.get(rootUUID);

			if (directoryHandle) {
				return {
					type: FileType.Directory,
					mtime: 0,
					ctime: 0,
					size: 0
				};
			}
		}

		const parent = await this.getParentDirectoryHandle(resource);

		if (!parent) {
			throw new Error('Stat error: no parent found');
		}

		const name = extUri.basename(resource);
		for await (const [childName, child] of parent) {
			if (childName === name) {
				if (child.kind === 'file') {
					const file = await child.getFile();

					return {
						type: FileType.File,
						mtime: file.lastModified,
						ctime: 0,
						size: file.size
					};
				} else {
					return {
						type: FileType.Directory,
						mtime: 0,
						ctime: 0,
						size: 0
					};
				}
			}
		}

		throw new Error('Stat error: entry not found');
	}