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:
parent
5ddfa9f7f6
commit
5928704e1b
3 changed files with 48 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue