From ff13eb5764ae8c5e0e6a7826d874ac9010da1e5d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 16 Nov 2015 10:00:26 -0800 Subject: [PATCH] ls: listing bug fixed for prefixes which do not start with . --- url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url.go b/url.go index 91fbcf5d..f943657f 100644 --- a/url.go +++ b/url.go @@ -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