mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Fix flake8-comprehensions C407 Unnecessary list comprehension
This commit is contained in:
parent
b9c7eec834
commit
169fcaae4a
1 changed files with 2 additions and 2 deletions
|
@ -67,10 +67,10 @@ def remote_dir(path):
|
|||
|
||||
def get_dir_size(input_path):
|
||||
prepend = partial(os.path.join, input_path)
|
||||
return sum([
|
||||
return sum(
|
||||
(os.path.getsize(f) if os.path.isfile(f) else get_dir_size(f))
|
||||
for f in map(prepend, os.listdir(text_type(input_path)))
|
||||
])
|
||||
)
|
||||
|
||||
|
||||
def remove_empty_folders(path, remove_root=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue