From 55cf826cae5cf0c3a135c6b377488f089f2d50b8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 13 Jun 2004 10:23:20 +0000 Subject: [PATCH] Version 0.3.0. Copyin. git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@7 1a6e6372-1aea-0310-bd00-dc960550e1df --- dummy | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/dummy b/dummy index 29457ee..0baad44 100755 --- a/dummy +++ b/dummy @@ -9,9 +9,9 @@ License: GPL. """ -__version__ = "0.2.0" -__revision__ = "$Id: dummy,v 1.5 2004/06/13 10:18:37 phd Exp $" -__date__ = "$Date: 2004/06/13 10:18:37 $"[7:-2] +__version__ = "0.3.0" +__revision__ = "$Id: dummy,v 1.6 2004/06/13 10:23:20 phd Exp $" +__date__ = "$Date: 2004/06/13 10:23:20 $"[7:-2] __author__ = "Oleg Broytmann " __copyright__ = "Copyright (C) 2004 PhiloSoft Design" @@ -55,6 +55,18 @@ def mcdummy_copyout(): real_file.close() +def mcdummy_copyin(): + """Put a file to the VFS""" + # Ignore the VFS name (sys.argv[2]) + 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.close() + + g = globals() command = sys.argv[1] procname = "mcdummy_" + command -- 2.39.5