mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-14 03:52:22 -05:00
Fixes displayshow error for series with special characters
This commit is contained in:
parent
a876059d2c
commit
d8e52f2098
@ -1409,9 +1409,9 @@ def human(size):
|
|||||||
def get_size(start_path='.'):
|
def get_size(start_path='.'):
|
||||||
|
|
||||||
total_size = 0
|
total_size = 0
|
||||||
for dirpath, dirnames, filenames in os.walk(start_path):
|
for dirpath, dirnames, filenames in ek.ek(os.walk, start_path):
|
||||||
for f in filenames:
|
for f in filenames:
|
||||||
fp = os.path.join(dirpath, f)
|
fp = ek.ek(os.path.join, dirpath, f)
|
||||||
total_size += os.path.getsize(fp)
|
total_size += ek.ek(os.path.getsize, fp)
|
||||||
return total_size
|
return total_size
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user