]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-shell: refactor do_du()
authorRishabh Dave <ridave@redhat.com>
Fri, 16 Aug 2019 17:37:32 +0000 (23:07 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 13 Sep 2019 05:15:42 +0000 (10:45 +0530)
commit7f90c50704c2cafe08c345c4e87728c2fc889173
treeaf64e02b3168b9bf8f7388b5439f77a89e353562
parent1766fe476ef07ddcc4b092f7792c67e99e0ce5e8
cephfs-shell: refactor do_du()

Improve code's readability and keep all paths as bytes.
Specifically, define a function within do do_du() to simplify the code
that handles recursion, rename args.dirs to args.paths, get rid of
dir_passed and use args.paths directly instead,  change the default
value of args.dirs to a list with one member that contains current
working directory, rewrite the docstring, and few more similar changes.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/tools/cephfs/cephfs-shell