Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
960 bytes
|
Line | |
---|
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 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.Empty = void 0;
|
---|
11 | const rxjs_1 = require("rxjs");
|
---|
12 | const exception_1 = require("../../exception");
|
---|
13 | class Empty {
|
---|
14 | constructor() {
|
---|
15 | this.capabilities = {
|
---|
16 | synchronous: true,
|
---|
17 | };
|
---|
18 | }
|
---|
19 | read(path) {
|
---|
20 | return rxjs_1.throwError(new exception_1.FileDoesNotExistException(path));
|
---|
21 | }
|
---|
22 | list(path) {
|
---|
23 | return rxjs_1.of([]);
|
---|
24 | }
|
---|
25 | exists(path) {
|
---|
26 | return rxjs_1.of(false);
|
---|
27 | }
|
---|
28 | isDirectory(path) {
|
---|
29 | return rxjs_1.of(false);
|
---|
30 | }
|
---|
31 | isFile(path) {
|
---|
32 | return rxjs_1.of(false);
|
---|
33 | }
|
---|
34 | stat(path) {
|
---|
35 | // We support stat() but have no file.
|
---|
36 | return rxjs_1.of(null);
|
---|
37 | }
|
---|
38 | }
|
---|
39 | exports.Empty = Empty;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.