mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
mount: fix identification of symlinks in directory listings
This commit is contained in:
@@ -130,6 +130,12 @@ func (d *Dir) ReadDirAll(ctx context.Context) (dirents []fuse.Dirent, err error)
|
|||||||
if node.IsDir() {
|
if node.IsDir() {
|
||||||
dirent.Type = fuse.DT_Dir
|
dirent.Type = fuse.DT_Dir
|
||||||
}
|
}
|
||||||
|
switch node := node.(type) {
|
||||||
|
case *vfs.File:
|
||||||
|
if node.IsSymlink() {
|
||||||
|
dirent.Type = fuse.DT_Link
|
||||||
|
}
|
||||||
|
}
|
||||||
dirents = append(dirents, dirent)
|
dirents = append(dirents, dirent)
|
||||||
}
|
}
|
||||||
itemsRead = len(dirents)
|
itemsRead = len(dirents)
|
||||||
|
|||||||
Reference in New Issue
Block a user