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-02 16:44:36 +01:00
parent 74687c25f5
commit 81a2ab599f
6 changed files with 20 additions and 4 deletions

View File

@@ -219,6 +219,10 @@ type Directory interface {
// Items returns the count of items in this directory or this
// directory and subdirectories if known, -1 for unknown
Items() int64
// ID returns the internal ID of this directory if known, or
// "" otherwise
ID() string
}
// MimeTyper is an optional interface for Object