File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/angular_devkit/core/src/virtual-fs/host Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import {
26
26
HostCapabilities ,
27
27
HostWatchOptions ,
28
28
ReadonlyHost ,
29
+ Stats ,
29
30
} from './interface' ;
30
31
import { SimpleMemoryHost } from './memory' ;
31
32
@@ -366,6 +367,12 @@ export class CordHost extends SimpleMemoryHost {
366
367
: ( ( this . willDelete ( path ) || this . willRename ( path ) ) ? of ( false ) : this . _back . isFile ( path ) ) ;
367
368
}
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
+
369
376
watch ( path : Path , options ?: HostWatchOptions ) {
370
377
// Watching not supported.
371
378
return null ;
You can’t perform that action at this time.
0 commit comments