From: Oleg Broytman Date: Sun, 13 Jun 2004 20:45:17 +0000 (+0000) Subject: Version 1.0.1. Open all files in append mode. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c28275505422c2295f23a3c62c7df522a7b446cc;p=extfs.d.git Version 1.0.1. Open all files in append mode. git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@13 1a6e6372-1aea-0310-bd00-dc960550e1df --- diff --git a/dummy b/dummy index 5e580b5..0f771d1 100755 --- a/dummy +++ b/dummy @@ -9,9 +9,9 @@ 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] +__version__ = "1.0.1" +__revision__ = "$Id: dummy,v 1.8 2004/06/13 20:45:17 phd Exp $" +__date__ = "$Date: 2004/06/13 20:45:17 $"[7:-2] __author__ = "Oleg Broytmann " __copyright__ = "Copyright (C) 2004 PhiloSoft Design" @@ -49,7 +49,7 @@ def mcdummy_copyout(): dummy_filename = sys.argv[3] real_filename = sys.argv[4] - real_file = open(real_filename, 'w') + real_file = open(real_filename, 'a') real_file.write("Copied from %s\n" % dummy_filename) real_file.write("Copied to %s\n" % real_filename) real_file.close() @@ -61,7 +61,7 @@ def mcdummy_copyin(): dummy_filename = sys.argv[3] real_filename = sys.argv[4] - real_file = open(real_filename + "-dummy.tmp", 'w') + real_file = open(real_filename + "-dummy.tmp", 'a') real_file.write("Copied from %s\n" % real_filename) real_file.write("Copied to %s\n" % dummy_filename) real_file.close()