fs: add optional ID to fs.Directory and set it in the remotes which care

This commit is contained in:
Nick Craig-Wood
2017-08-07 15:31:22 +01:00
parent 74687c25f5
commit 81a2ab599f
6 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ func (f *Fs) List(dir string) (entries fs.DirEntries, err error) {
if info.Folder != nil {
// cache the directory ID for later lookups
f.dirCache.Put(remote, info.ID)
d := fs.NewDir(remote, time.Time(info.LastModifiedDateTime))
d := fs.NewDir(remote, time.Time(info.LastModifiedDateTime)).SetID(info.ID)
if info.Folder != nil {
d.SetItems(info.Folder.ChildCount)
}