Commit e37ffbaa authored by 黄大凯's avatar 黄大凯
Browse files

Refactor: rename filelist to fldb

parent d7de2c97
Loading
Loading
Loading
Loading

filelist/pbgen.sh

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
protoc -I=.. --go_out=. --go_opt=paths=source_relative finfo.proto
# protoc -I=filelist/ --go_out=filelist/ --go_opt=paths=source_relative filelist/finfo.proto
 No newline at end of file

filelist/snapshot.go

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
package filelist
+2 −2
Original line number Diff line number Diff line
package filelist
package fldb

import (
	"fmt"
@@ -115,7 +115,7 @@ func Save(list *rsync.FileList, module string, prepath string) {
			fmt.Println("key= ", string(k))
			var m FInfo
			proto.Unmarshal(v, &m)
			fmt.Println(m.Mtime, m.Size)
			fmt.Println(m.GetMtime(), m.GetSize())
		}

		return nil
+1 −1
Original line number Diff line number Diff line
package filelist
package fldb

import (
	"rsync2os/rsync"
+4 −4
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
// 	protoc        v3.12.0
// source: finfo.proto

package filelist
package fldb

import (
	proto "github.com/golang/protobuf/proto"
@@ -96,10 +96,10 @@ var file_finfo_proto_rawDesc = []byte{
	0x04, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x53, 0x69, 0x7a,
	0x65, 0x12, 0x14, 0x0a, 0x05, 0x4d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
	0x52, 0x05, 0x4d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x18,
	0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x25, 0x5a, 0x23, 0x67,
	0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x21, 0x5a, 0x1f, 0x67,
	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x69, 0x61, 0x6b, 0x7a,
	0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x32, 0x6f, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x6c, 0x69,
	0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
	0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x32, 0x6f, 0x73, 0x2f, 0x66, 0x6c, 0x64, 0x62, 0x62, 0x06,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
Loading