UNPKG

990 BJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.Empty = void 0;
11const rxjs_1 = require("rxjs");
12const exception_1 = require("../../exception");
13class Empty {
14 constructor() {
15 this.capabilities = {
16 synchronous: true,
17 };
18 }
19 read(path) {
20 return (0, rxjs_1.throwError)(new exception_1.FileDoesNotExistException(path));
21 }
22 list(path) {
23 return (0, rxjs_1.of)([]);
24 }
25 exists(path) {
26 return (0, rxjs_1.of)(false);
27 }
28 isDirectory(path) {
29 return (0, rxjs_1.of)(false);
30 }
31 isFile(path) {
32 return (0, rxjs_1.of)(false);
33 }
34 stat(path) {
35 // We support stat() but have no file.
36 return (0, rxjs_1.of)(null);
37 }
38}
39exports.Empty = Empty;