Browse Source

Merge pull request #601 from JackDandy/feature/ChangeGetSize

Change get_size helper to also handle files.
pull/602/head
JackDandy 9 years ago
parent
commit
394315d00c
  1. 1
      CHANGES.md
  2. 2
      sickbeard/helpers.py

1
CHANGES.md

@ -106,6 +106,7 @@
* Change disable connection attempts and remove UI references to the TVRage info source
* Change to simplify xem id fetching
* Fix issue on Add Existing Shows page where shows were listed that should not have been
* Change get_size helper to also handle files
### 0.10.0 (2015-08-06 11:05:00 UTC)

2
sickbeard/helpers.py

@ -1314,6 +1314,8 @@ def human(size):
def get_size(start_path='.'):
if ek.ek(os.path.isfile, start_path):
return ek.ek(os.path.getsize, start_path)
total_size = 0
for dirpath, dirnames, filenames in ek.ek(os.walk, start_path):
for f in filenames:

Loading…
Cancel
Save