]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix relative path calculation WIP.
authorDaira Hopwood <daira@jacaranda.org>
Thu, 17 Sep 2015 15:13:36 +0000 (16:13 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:49 +0000 (01:19 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index bb7a00ded81231be2c40c3f5f1dbfcca78f3ef1e..1b30dd7f741dbc7ad05d6848cfeb3eebade54da9 100644 (file)
@@ -121,7 +121,10 @@ class QueueMixin(HookMixin):
         return unicode_from_filepath(self._local_filepath.preauthChild(relpath_u))
 
     def _get_relpath(self, filepath):
-        return u"/".join(filepath.segmentsFrom(self._local_filepath))
+        print "_get_relpath(%r)" % (filepath,)
+        segments = filepath.asTextMode().segmentsFrom(self._local_filepath.asTextMode())
+        print "segments = %r" % (segments,)
+        return u"/".join(segments)
 
     def _count(self, counter_name, delta=1):
         self._client.stats_provider.count('magic_folder.%s.%s' % (self._name, counter_name), delta)