mirror of
https://github.com/rclone/rclone.git
synced 2025-02-13 08:44:15 +08:00
mount: make directories show with non zero size
See: https://forum.rclone.org/t/empty-folder-when-rclone-mount-used-as-external-storage-of-nextcloud/9251
This commit is contained in:
parent
6e70d88f54
commit
d6778c9d19
|
@ -37,6 +37,8 @@ func (d *Dir) Attr(ctx context.Context, a *fuse.Attr) (err error) {
|
||||||
a.Crtime = modTime
|
a.Crtime = modTime
|
||||||
// FIXME include Valid so get some caching?
|
// FIXME include Valid so get some caching?
|
||||||
// FIXME fs.Debugf(d.path, "Dir.Attr %+v", a)
|
// FIXME fs.Debugf(d.path, "Dir.Attr %+v", a)
|
||||||
|
a.Size = 512
|
||||||
|
a.Blocks = 1
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user