ls: listing bug fixed for prefixes which do not start with .

This commit is contained in:
Harshavardhana
2015-11-16 10:00:26 -08:00
parent 4248f5c996
commit ff13eb5764
+1 -1
View File
@@ -87,7 +87,7 @@ func url2DirContent(urlStr string) (content *client.Content, err *probe.Error) {
if err != nil {
return nil, err.Trace(urlStr)
}
if clnt.GetURL().Path == string(clnt.GetURL().Separator) {
if clnt.GetURL().Path == string(clnt.GetURL().Separator) || clnt.GetURL().Path == "." {
content := new(client.Content)
content.URL = clnt.GetURL()
content.Type = os.ModeDir