File tree 1 file changed +2
-2
lines changed
packages/angular_devkit/core/src/virtual-fs/host
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -351,15 +351,15 @@ export class CordHost extends SimpleMemoryHost {
351
351
exists ( path : Path ) : Observable < boolean > {
352
352
return this . _exists ( path )
353
353
? of ( true )
354
- : ( this . willDelete ( path ) ? of ( false ) : this . _back . exists ( path ) ) ;
354
+ : ( ( this . willDelete ( path ) || this . willRename ( path ) ) ? of ( false ) : this . _back . exists ( path ) ) ;
355
355
}
356
356
isDirectory ( path : Path ) : Observable < boolean > {
357
357
return this . _exists ( path ) ? super . isDirectory ( path ) : this . _back . isDirectory ( path ) ;
358
358
}
359
359
isFile ( path : Path ) : Observable < boolean > {
360
360
return this . _exists ( path )
361
361
? super . isFile ( path )
362
- : ( this . willDelete ( path ) ? of ( false ) : this . _back . isFile ( path ) ) ;
362
+ : ( ( this . willDelete ( path ) || this . willRename ( path ) ) ? of ( false ) : this . _back . isFile ( path ) ) ;
363
363
}
364
364
365
365
stat ( path : Path ) {
You can’t perform that action at this time.
0 commit comments