mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 21:06:42 -04:00
Map entries to mod times from the beginning
This commit is contained in:
+8
-8
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
// GetRemoteDataFromServer prints to stdout the remote entries, mod times, folders, and deletions
|
||||
// lists in output are separated by "\x1f"
|
||||
// lists in output are separated by "\x1d"
|
||||
// output is meant to be captured over SSH for interpretation by the client
|
||||
func GetRemoteDataFromServer() {
|
||||
entryList, dirList := WalkEntryDir()
|
||||
@@ -20,19 +20,19 @@ func GetRemoteDataFromServer() {
|
||||
|
||||
// print the lists to stdout
|
||||
for _, entry := range entryList {
|
||||
fmt.Print("\n" + entry)
|
||||
fmt.Print("\x1f" + entry)
|
||||
}
|
||||
fmt.Print("\x1f")
|
||||
fmt.Print("\x1d")
|
||||
for _, mod := range modList {
|
||||
fmt.Print("\n")
|
||||
fmt.Print("\x1f")
|
||||
fmt.Print(mod)
|
||||
}
|
||||
fmt.Print("\x1f")
|
||||
fmt.Print("\x1d")
|
||||
for _, dir := range dirList {
|
||||
fmt.Print("\n" + dir)
|
||||
fmt.Print("\x1f" + dir)
|
||||
}
|
||||
fmt.Print("\x1f")
|
||||
fmt.Print("\x1d")
|
||||
for _, deletion := range deletionsList {
|
||||
fmt.Print("\n" + deletion.Name())
|
||||
fmt.Print("\x1f" + deletion.Name())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user