Skip to content

Commit

Permalink
Fix the cdu() error
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome servonnat committed Aug 28, 2023
1 parent 67ffc36 commit acdaf9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion climaf/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,10 @@ def clist(size="", age="", access=0, pattern="", not_pattern="", usage=False, co
dic_usage = dict()
tmp = ""
for crs in work_dic:
tmp += work_dic[crs] + " "
if isinstance(work_dic[crs], tuple):
tmp += work_dic[crs][0] + " "
if isinstance(work_dic[crs], str):
tmp += work_dic[crs] + " "
res = os.popen("du -sc %s" % tmp).read()

regex = re.compile('([0-9]+)\t')
Expand Down

0 comments on commit acdaf9a

Please sign in to comment.