summaryrefslogtreecommitdiffstats
path: root/src/fringlib/fringutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fringlib/fringutil.py')
-rw-r--r--src/fringlib/fringutil.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fringlib/fringutil.py b/src/fringlib/fringutil.py
index 3199bf5..b5b98df 100644
--- a/src/fringlib/fringutil.py
+++ b/src/fringlib/fringutil.py
@@ -1,4 +1,6 @@
import os
+import gtk
+import gnomevfs
def get_parent_from_uri(uri):
""" Get the parent folder from an uri """
@@ -6,6 +8,9 @@ def get_parent_from_uri(uri):
p = os.path.join(p[:-1])
return p[0]
+def format_uri(uri):
+ return gnomevfs.format_uri_for_display(uri)
+
def pretty_size(size):
if size >= 1024*1024*1024:
return "%.1f GiB" % round(size/1024/1024/1024.0)