diff options
| -rw-r--r-- | drive/download_sync.go | 8 | ||||
| -rw-r--r-- | drive/upload_sync.go | 10 | ||||
| -rw-r--r-- | gdrive.go | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/drive/download_sync.go b/drive/download_sync.go index 5fb88ab..37c78cb 100644 --- a/drive/download_sync.go +++ b/drive/download_sync.go @@ -35,7 +35,7 @@ func (self *Drive) DownloadSync(args DownloadSyncArgs) error { return err } - fmt.Fprintf(args.Out, "Found %d local file(s) and %d remote file(s)\n", len(files.local), len(files.remote)) + fmt.Fprintf(args.Out, "Found %d local files and %d remote files\n", len(files.local), len(files.remote)) // Create missing directories files, err = self.createMissingLocalDirs(files, args) @@ -115,7 +115,7 @@ func (self *Drive) downloadMissingFiles(files *syncFiles, args DownloadSyncArgs) missingCount := len(missingFiles) if missingCount > 0 { - fmt.Fprintf(args.Out, "\n%d local file(s) are missing\n", missingCount) + fmt.Fprintf(args.Out, "\n%d local files are missing\n", missingCount) } for i, rf := range missingFiles { @@ -139,7 +139,7 @@ func (self *Drive) downloadChangedFiles(files *syncFiles, args DownloadSyncArgs) changedCount := len(changedFiles) if changedCount > 0 { - fmt.Fprintf(args.Out, "\n%d remote file(s) has changed\n", changedCount) + fmt.Fprintf(args.Out, "\n%d remote files has changed\n", changedCount) } for i, cf := range changedFiles { @@ -198,7 +198,7 @@ func (self *Drive) deleteExtraneousLocalFiles(files *syncFiles, args DownloadSyn extraneousCount := len(extraneousFiles) if extraneousCount > 0 { - fmt.Fprintf(args.Out, "\n%d local file(s) are extraneous\n", extraneousCount) + fmt.Fprintf(args.Out, "\n%d local files are extraneous\n", extraneousCount) } // Sort files so that the files with the longest path comes first diff --git a/drive/upload_sync.go b/drive/upload_sync.go index 748e61d..0af83f0 100644 --- a/drive/upload_sync.go +++ b/drive/upload_sync.go @@ -41,7 +41,7 @@ func (self *Drive) UploadSync(args UploadSyncArgs) error { return err } - fmt.Fprintf(args.Out, "Found %d local file(s) and %d remote file(s)\n", len(files.local), len(files.remote)) + fmt.Fprintf(args.Out, "Found %d local files and %d remote files\n", len(files.local), len(files.remote)) // Create missing directories files, err = self.createMissingRemoteDirs(files, args) @@ -151,7 +151,7 @@ func (self *Drive) createMissingRemoteDirs(files *syncFiles, args UploadSyncArgs missingCount := len(missingDirs) if missingCount > 0 { - fmt.Fprintf(args.Out, "\n%d directories missing on drive\n", missingCount) + fmt.Fprintf(args.Out, "\n%d remote directories are missing\n", missingCount) } // Sort directories so that the dirs with the shortest path comes first @@ -192,7 +192,7 @@ func (self *Drive) uploadMissingFiles(files *syncFiles, args UploadSyncArgs) err missingCount := len(missingFiles) if missingCount > 0 { - fmt.Fprintf(args.Out, "\n%d file(s) missing on drive\n", missingCount) + fmt.Fprintf(args.Out, "\n%d remote files are missing\n", missingCount) } for i, lf := range missingFiles { @@ -217,7 +217,7 @@ func (self *Drive) updateChangedFiles(files *syncFiles, args UploadSyncArgs) err changedCount := len(changedFiles) if changedCount > 0 { - fmt.Fprintf(args.Out, "\n%d local file(s) has changed\n", changedCount) + fmt.Fprintf(args.Out, "\n%d local files has changed\n", changedCount) } for i, cf := range changedFiles { @@ -236,7 +236,7 @@ func (self *Drive) deleteExtraneousRemoteFiles(files *syncFiles, args UploadSync extraneousCount := len(extraneousFiles) if extraneousCount > 0 { - fmt.Fprintf(args.Out, "\n%d extraneous file(s) on drive\n", extraneousCount) + fmt.Fprintf(args.Out, "\n%d remote files are extraneous\n", extraneousCount) } // Sort files so that the files with the longest path comes first @@ -329,7 +329,7 @@ func main() { cli.BoolFlag{ Name: "deleteExtraneous", Patterns: []string{"--delete-extraneous"}, - Description: "Delete extraneous files from drive", + Description: "Delete extraneous remote files", OmitValue: true, }, cli.IntFlag{ |
