diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fringlib/fringwalker.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fringlib/fringwalker.py b/src/fringlib/fringwalker.py index 02d2af6..e6e1707 100644 --- a/src/fringlib/fringwalker.py +++ b/src/fringlib/fringwalker.py @@ -186,7 +186,7 @@ class WalkThread( threading.Thread ): d = h.next() try: while True: - if self.stopsignal: return (None,None,0) + if self.stopsignal: return d = h.next() if not self.showhidden and d.name[0] == ".": continue @@ -209,14 +209,16 @@ class WalkThread( threading.Thread ): c += 1 if self.method == WALKER_CPP: - sub = fringtools.build_tree(self.uri+os.sep+directory, self.showhidden) + path = get_local_path_from_uri(str(self.uri))+os.sep+directory + sub = fringtools.build_tree(path, self.showhidden) elif self.method == WALKER_GNOMEVFS: uri = self.uri sub = self.build_tree_gnomevfs(uri.append_path(directory)) else: - sub = self.build_tree_python(self.uri+os.sep+directory) + path = get_local_path_from_uri(str(self.uri))+os.sep+directory + sub = self.build_tree_python(path) - if self.stopsignal: return None + if self.stopsignal: return total += sub[2] l.append( (directory,sub[1],sub[2]) ); |