1
0
mirror of https://github.com/minio/mc.git synced 2025-11-14 23:42:27 +03:00

Trim caption for just file names and getFixedWidth for 10%.

Remove spaces in between unicode characters, these were causing spurious space characters
This commit is contained in:
Harshavardhana
2015-06-16 02:11:36 -07:00
parent 0357efbdef
commit 476e184a90
3 changed files with 18 additions and 27 deletions

View File

@@ -20,11 +20,11 @@ import (
"fmt"
"io"
"math"
"path/filepath"
"runtime"
"sync"
"github.com/minio/cli"
"github.com/minio/mc/pkg/client"
"github.com/minio/mc/pkg/console"
"github.com/minio/mc/pkg/countlock"
"github.com/minio/mc/pkg/yielder"
@@ -72,8 +72,7 @@ EXAMPLES:
func doSync(sURLs syncURLs, bar *barSend, syncQueue chan bool, errCh chan error, wg *sync.WaitGroup) {
defer wg.Done()
if !globalQuietFlag {
sourceContentParse, _ := client.Parse(sURLs.SourceContent.Name)
bar.SetCaption(caption{message: sURLs.SourceContent.Name + ": ", separator: sourceContentParse.Separator})
bar.SetCaption(filepath.Base(sURLs.SourceContent.Name) + ": ")
}
reader, length, err := getSource(sURLs.SourceContent.Name)
if err != nil {