Use url.Separator everywhere that is needed

This commit is contained in:
Harshavardhana
2015-06-10 21:54:05 -07:00
parent e6ad28079b
commit 08d38fb7da
4 changed files with 40 additions and 33 deletions
+3 -1
View File
@@ -25,6 +25,7 @@ import (
"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,7 +73,8 @@ EXAMPLES:
func doSync(sURLs syncURLs, bar *barSend, syncQueue chan bool, errCh chan error, wg *sync.WaitGroup) {
defer wg.Done()
if !globalQuietFlag {
bar.SetPrefix(sURLs.SourceContent.Name + ": ")
sourceContentParse, _ := client.Parse(sURLs.SourceContent.Name)
bar.SetCaption(caption{message: sURLs.SourceContent.Name + ": ", separator: sourceContentParse.Separator})
}
reader, length, err := getSource(sURLs.SourceContent.Name)
if err != nil {