From: Milind Changire Date: Sat, 13 Apr 2019 05:19:01 +0000 (+0530) Subject: cephfs-shell: fix lcd command X-Git-Tag: v15.1.0~2908^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2d36d7b4c8befb77ad90319a371857294370b1d8;p=ceph-ci.git cephfs-shell: fix lcd command Signed-off-by: Milind Changire --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index dbce650dddd..3c48e190765 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -931,6 +931,8 @@ sub-directories, files') if os.path.isdir(path): os.chdir(path) # self.poutput(get_all_possible_paths(args.path)) + else: + self.poutput("%s: no such directory" % path) def complete_lls(self, text, line, begidx, endidx): """