prefix with parent path for dir... case

This commit is contained in:
Anand Babu (AB) Periasamy
2015-06-06 15:11:03 -07:00
parent e11987dcbe
commit 4da1d24405
+5
View File
@@ -18,6 +18,7 @@ package main
import (
"fmt"
"path/filepath"
"runtime"
"strings"
@@ -74,6 +75,10 @@ func doList(clnt client.Client, targetURL string, recursive bool, recursivePrefi
err = contentCh.Err
break
}
if recursive && recursivePrefix != "" {
contentCh.Content.Name = filepath.Join(filepath.Base(targetURL), contentCh.Content.Name)
}
console.Println(parseContent(contentCh.Content))
}
if err != nil {