mirror of
https://github.com/rclone/rclone.git
synced 2025-07-16 22:42:36 +02:00
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:
@ -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())
|
||||
|
||||
|
Reference in New Issue
Block a user