]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: fix lcd command
authorMilind Changire <mchangir@redhat.com>
Sat, 13 Apr 2019 05:19:01 +0000 (10:49 +0530)
committerNathan Cutler <ncutler@suse.com>
Thu, 18 Apr 2019 11:03:09 +0000 (13:03 +0200)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 2d36d7b4c8befb77ad90319a371857294370b1d8)

src/tools/cephfs/cephfs-shell

index dbce650ddddc164ff6facb1b1bd33e81ec2adea0..3c48e190765cb26147a45fea13e9db2183303e65 100644 (file)
@@ -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):
         """