X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=dummy;h=034cf0fe79b1cb5d1aaffcc2a358e70afced2051;hp=5e580b516787f431158ba05c089f780498aa1927;hb=c1fd444890ddd1bb30699e88037ff9815e9a10ff;hpb=60982ee2bb974241f897602a70ae21f277982f66 diff --git a/dummy b/dummy index 5e580b5..034cf0f 100755 --- a/dummy +++ b/dummy @@ -3,17 +3,14 @@ """ Dummy VFS for Midnight Commander. Just for a test. -Author: Oleg BroytMann . -Copyright (C) 2004 PhiloSoft Design. -License: GPL. - """ -__version__ = "1.0.0" -__revision__ = "$Id: dummy,v 1.7 2004/06/13 13:26:57 phd Exp $" -__date__ = "$Date: 2004/06/13 13:26:57 $"[7:-2] -__author__ = "Oleg Broytmann " -__copyright__ = "Copyright (C) 2004 PhiloSoft Design" +__version__ = "1.0.1" +__revision__ = "$Id$" +__date__ = "$Date$"[7:-2] +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2004-2009 PhiloSoft Design" +__license__ = "GPL" import sys @@ -49,9 +46,9 @@ def mcdummy_copyout(): dummy_filename = sys.argv[3] real_filename = sys.argv[4] - real_file = open(real_filename, 'w') - real_file.write("Copied from %s\n" % dummy_filename) - real_file.write("Copied to %s\n" % real_filename) + real_file = open(real_filename, 'a') + real_file.write("Copy from %s\n" % dummy_filename) + real_file.write("Copy to %s\n" % real_filename) real_file.close() @@ -61,9 +58,9 @@ def mcdummy_copyin(): dummy_filename = sys.argv[3] real_filename = sys.argv[4] - real_file = open(real_filename + "-dummy.tmp", 'w') - real_file.write("Copied from %s\n" % real_filename) - real_file.write("Copied to %s\n" % dummy_filename) + real_file = open(real_filename + "-dummy.tmp", 'a') + real_file.write("Copy from %s\n" % real_filename) + real_file.write("Copy to %s\n" % dummy_filename) real_file.close()