Mon, 12 May 2008 11:04:53 +0200 <thp@perli.net>
Fix bugs in the calculate_size utility function * src/gpodder/util.py: Fix problem when accessing files or folders is not possible in calculate_size(); thanks to Scott Wegner for reporting this bug on Launchpad * src/gpodder/gui.py: Add Scott Wegner to list of bug reporters (Closes: https://bugs.launchpad.net/ubuntu/+source/gpodder/+bug/201276) git-svn-id: svn://svn.berlios.de/gpodder/trunk@711 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
parent
71a0e158b1
commit
9ba9d6bbbd
|
@ -1,3 +1,12 @@
|
|||
Mon, 12 May 2008 11:04:53 +0200 <thp@perli.net>
|
||||
Fix bugs in the calculate_size utility function
|
||||
|
||||
* src/gpodder/util.py: Fix problem when accessing files or folders is
|
||||
not possible in calculate_size(); thanks to Scott Wegner for reporting
|
||||
this bug on Launchpad
|
||||
* src/gpodder/gui.py: Add Scott Wegner to list of bug reporters
|
||||
(Closes: https://bugs.launchpad.net/ubuntu/+source/gpodder/+bug/201276)
|
||||
|
||||
Sun, 11 May 2008 15:00:07 +0200 <thp@perli.net>
|
||||
Update German translation, refresh translations
|
||||
|
||||
|
|
|
@ -91,7 +91,8 @@ app_authors = [
|
|||
'Ortwin Forster', 'Paul Elliot', 'Paul Rudkin',
|
||||
'Pavel Mlčoch', 'Peter Hoffmann', 'Philippe Gouaillier', 'Pieter de Decker',
|
||||
'Preben Randhol', 'Rafael Proença', 'red26wings', 'Richard Voigt',
|
||||
'Robert Young', 'Roel Groeneveld', 'Seth Remington', 'Shane Donohoe',
|
||||
'Robert Young', 'Roel Groeneveld',
|
||||
'Scott Wegner', 'Seth Remington', 'Shane Donohoe',
|
||||
'Stefan Lohmaier', 'Stephan Buys', 'Stylianos Papanastasiou', 'Teo Ramirez',
|
||||
'Thomas Matthijs', 'Thomas Mills Hinkle', 'Thomas Nilsson',
|
||||
'Tim Michelsen', 'Tim Preetz', 'Todd Zullinger', 'Tomas Matheson', 'VladDrac',
|
||||
|
|
|
@ -166,11 +166,14 @@ def calculate_size( path):
|
|||
if os.path.isdir( path) and not os.path.islink( path):
|
||||
sum = os.path.getsize( path)
|
||||
|
||||
for item in os.listdir( path):
|
||||
try:
|
||||
sum += calculate_size( os.path.join( path, item))
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
for item in os.listdir(path):
|
||||
try:
|
||||
sum += calculate_size(os.path.join(path, item))
|
||||
except:
|
||||
log('Cannot get size for %s', path)
|
||||
except:
|
||||
log('Cannot access: %s', path)
|
||||
|
||||
return sum
|
||||
|
||||
|
|
Loading…
Reference in New Issue