bootstrap filer replication with weed filer.export -targetStore=notification

This commit is contained in:
Chris Lu
2018-11-03 12:43:45 -07:00
parent 3674ad9f8e
commit a64613172d
4 changed files with 61 additions and 21 deletions

View File

@@ -43,3 +43,15 @@ func (entry *Entry) Timestamp() time.Time {
return entry.Mtime
}
}
func (entry *Entry) ToProtoEntry() *filer_pb.Entry {
if entry == nil {
return nil
}
return &filer_pb.Entry{
Name: string(entry.FullPath),
IsDirectory: entry.IsDirectory(),
Attributes: EntryAttributeToPb(entry),
Chunks: entry.Chunks,
}
}