From: Rishabh Dave Date: Fri, 16 Aug 2019 17:53:42 +0000 (+0530) Subject: cephfs-shell: option -r is not for reverse X-Git-Tag: v15.1.0~1555^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1766fe476ef07ddcc4b092f7792c67e99e0ce5e8;p=ceph.git cephfs-shell: option -r is not for reverse Option "-r" for du command stands for recursive and not reverse. Signed-off-by: Rishabh Dave --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 67337c7398f71..174d118b80285 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -1159,9 +1159,6 @@ sub-directories, files') else: dir_trav.append('.') - if args.r: - dir_trav = reversed(dir_trav) - for i in dir_trav: try: i_path = os.path.normpath(i)