From d6778c9d198cf5787cca7b18a851856cf1483da6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 25 Mar 2019 11:21:26 +0000 Subject: [PATCH] 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 --- cmd/mount/dir.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/mount/dir.go b/cmd/mount/dir.go index ee86bc890..114e4c6b0 100644 --- a/cmd/mount/dir.go +++ b/cmd/mount/dir.go @@ -37,6 +37,8 @@ func (d *Dir) Attr(ctx context.Context, a *fuse.Attr) (err error) { a.Crtime = modTime // FIXME include Valid so get some caching? // FIXME fs.Debugf(d.path, "Dir.Attr %+v", a) + a.Size = 512 + a.Blocks = 1 return nil }