On rename, rename in cache too if the file exists

Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
This commit is contained in:
Anagh Kumar Baranwal 2019-08-26 18:13:11 +05:30 committed by Nick Craig-Wood
parent 5ddfa9f7f6
commit 5928704e1b
3 changed files with 48 additions and 2 deletions

View file

@ -21,7 +21,7 @@ func fileCreate(t *testing.T, r *fstest.Run) (*VFS, *File, fstest.Item) {
node, err := vfs.Stat("dir/file1")
require.NoError(t, err)
require.True(t, node.IsFile())
require.True(t, node.Mode().IsRegular())
return vfs, node.(*File), file1
}