Add entry refresh feature; fix ClampTrailingWhitespace ignoring the initial trim

This commit is contained in:
2025-05-31 21:48:11 +00:00
parent 5666974a7f
commit ca277ba773
4 changed files with 71 additions and 13 deletions
+2 -2
View File
@@ -17,12 +17,12 @@ import (
func GetRemoteDataFromServer(clientDeviceID string) error {
entryList, dirList, err := synccommon.WalkEntryDir()
if err != nil {
return errors.New("unable to walk the entry directory: " + err.Error())
return errors.New("unable to walk entry directory: " + err.Error())
}
modList := synccommon.GetModTimes(entryList)
deletionsList, err := os.ReadDir(global.ConfigDir + global.PathSeparator + "deletions")
if err != nil {
return errors.New("unable to read the deletions directory: " + err.Error())
return errors.New("unable to read deletions directory: " + err.Error())
}
// print the current UNIX timestamp to stdout