forked from TrueCloudLab/rclone
vfs: add Path method to Node and use it to stop reading nil DirEntry
All DirEntry calls now have been checked for nil or converted to use Path.
This commit is contained in:
parent
7c3584f4e6
commit
c560017934
8 changed files with 46 additions and 38 deletions
|
@ -46,6 +46,9 @@ func TestDirMethods(t *testing.T) {
|
|||
// Name
|
||||
assert.Equal(t, "dir", dir.Name())
|
||||
|
||||
// Path
|
||||
assert.Equal(t, "dir", dir.Path())
|
||||
|
||||
// Sys
|
||||
assert.Equal(t, nil, dir.Sys())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue