From 1a6c7ffd953c9f95cfb4f1a574bf651de7f9ae11 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 17 Nov 2015 17:39:36 -0800 Subject: [PATCH] rm: Fix wasn't proper in previous commit fix it --- rm-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rm-main.go b/rm-main.go index dbeb160f..b41cc24c 100644 --- a/rm-main.go +++ b/rm-main.go @@ -220,8 +220,8 @@ func mainRm(ctx *cli.Context) { } // Remove contents of this folder. rmAll(url, isIncomplete) - // url will be '.' for arguments which will be just '...' - if removeTopFolder && url != "." && url != ".." { + // Ignore url's './', '../' . + if removeTopFolder && url != "./" && url != "../" { // Remove top folder as well. err := rm(url, isIncomplete) if err != nil {