summaryrefslogtreecommitdiff
path: root/rapid/rapid.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-09-17 21:08:23 +0200
committerJulien Valroff <julien@kirya.net>2010-09-17 21:08:23 +0200
commite653d7822032e1a963c9546357146e76c1a4dff8 (patch)
treea3c97920629783caa51668493122728ae24e0dd1 /rapid/rapid.py
parent22e017739d237df346286fd04aa201715374a5ea (diff)
Imported Upstream version 0.3.2upstream/0.3.2
Diffstat (limited to 'rapid/rapid.py')
-rwxr-xr-xrapid/rapid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rapid/rapid.py b/rapid/rapid.py
index 4a1c821..e2444fb 100755
--- a/rapid/rapid.py
+++ b/rapid/rapid.py
@@ -4880,13 +4880,13 @@ class RapidApp(gnomeglade.GnomeApp, dbus.service.Object):
Displays the amount of space free on the filesystem the files will be downloaded to.
Also displays backup volumes / path being used.
"""
- if using_gio:
+ msg = ''
+ if using_gio and os.path.isdir(self.prefs.download_folder):
folder = gio.File(self.prefs.download_folder)
fileInfo = folder.query_filesystem_info(gio.FILE_ATTRIBUTE_FILESYSTEM_FREE)
free = common.formatSizeForUser(fileInfo.get_attribute_uint64(gio.FILE_ATTRIBUTE_FILESYSTEM_FREE))
msg = " " + _("%(free)s available") % {'free': free}
- else:
- msg = ''
+
if self.prefs.backup_images:
if not self.prefs.backup_device_autodetection: