From 6b679e122c2a45e29b61287eef3c083822535f49 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Wed, 10 Jun 2009 12:19:35 +0000 Subject: Only one dot for the filename if we specify an extension --- diff --git a/bin/copy-from-journal b/bin/copy-from-journal index 2db06a5..457e9ff 100755 --- a/bin/copy-from-journal +++ b/bin/copy-from-journal @@ -101,11 +101,12 @@ if __name__ == "__main__": outext = sugar.mime.get_primary_extension(mimetype) if outext == None: outext = "dsobject" + outext = '.' + outext # Lastly, actually copy the file out of the datastore and onto the # filesystem. - shutil.copyfile(dsentry.get_file_path(), outroot + '.' + outext) - print '%s -> %s' % (dsentry.get_file_path(), outroot + '.' + outext) + shutil.copyfile(dsentry.get_file_path(), outroot + outext) + print '%s -> %s' % (dsentry.get_file_path(), outroot + outext) # Cleanup. dsentry.destroy() -- cgit v0.9.1