diff options
Diffstat (limited to 'weed/util/fullpath.go')
| -rw-r--r-- | weed/util/fullpath.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/weed/util/fullpath.go b/weed/util/fullpath.go index 85028b052..f52d4d1d0 100644 --- a/weed/util/fullpath.go +++ b/weed/util/fullpath.go @@ -41,8 +41,11 @@ func (fp FullPath) Child(name string) FullPath { return FullPath(dir + "/" + noPrefix) } -func (fp FullPath) AsInode() uint64 { - return uint64(HashStringToLong(string(fp))) +// AsInode an in-memory only inode representation +func (fp FullPath) AsInode(unixTime int64) uint64 { + inode := uint64(HashStringToLong(string(fp))) + inode = inode + uint64(unixTime)*37 + return inode } // split, but skipping the root |
