Signed-off-by: Daira Hopwood <daira@jacaranda.org>
return self._parent.create_subdirectory(name)
def _maybe_upload(val):
+ print "in _maybe_upload"
if not os.path.exists(path):
self._log("uploader: not uploading non-existent file.")
self._stats_provider.count('drop_upload.objects_disappeared', 1)
self.notify_close_write(tree_dir_fp)
return d2
d.addCallback(testMoveEmptyTree)
+ def _print(ign):
+ print "in _print"
+ d.addCallback(_print)
d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.objects_uploaded'), 1))
d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.files_uploaded'), 0))
d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('drop_upload.objects_queued'), 0))