UNPKG

kura

Version:

The FileSystem API abstraction library.

23 lines 799 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileSystemAsync = void 0; const DirectoryEntryAsync_1 = require("./DirectoryEntryAsync"); const FileSystemUtil_1 = require("./FileSystemUtil"); class FileSystemAsync { constructor(filesystem) { this.filesystem = filesystem; } get name() { return this.filesystem.name; } get root() { return new DirectoryEntryAsync_1.DirectoryEntryAsync(this, this.filesystem.root); } async toURL(path, method) { const fullPath = (0, FileSystemUtil_1.resolveToFullPath)("", path); const rootPath = await this.root.toURL(method); return `${rootPath}${fullPath}`; } } exports.FileSystemAsync = FileSystemAsync; //# sourceMappingURL=FileSystemAsync.js.map