We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71d25a5 commit ad0e808Copy full SHA for ad0e808
packages/angular_devkit/core/src/virtual-fs/host/record.ts
@@ -26,6 +26,7 @@ import {
26
HostCapabilities,
27
HostWatchOptions,
28
ReadonlyHost,
29
+ Stats,
30
} from './interface';
31
import { SimpleMemoryHost } from './memory';
32
@@ -366,6 +367,12 @@ export class CordHost extends SimpleMemoryHost {
366
367
: ((this.willDelete(path) || this.willRename(path)) ? of(false) : this._back.isFile(path));
368
}
369
370
+ stat(path: Path): Observable<Stats | null> | null {
371
+ return this._exists(path)
372
+ ? super.stat(path)
373
+ : ((this.willDelete(path) || this.willRename(path)) ? of(null) : this._back.stat(path));
374
+ }
375
+
376
watch(path: Path, options?: HostWatchOptions) {
377
// Watching not supported.
378
return null;
0 commit comments