Version 0.2.0. Copyout.
authorOleg Broytman <phd@phdru.name>
Sun, 13 Jun 2004 10:18:37 +0000 (10:18 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 13 Jun 2004 10:18:37 +0000 (10:18 +0000)
git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@6 1a6e6372-1aea-0310-bd00-dc960550e1df

dummy

diff --git a/dummy b/dummy
index 9f070a5..29457ee 100755 (executable)
--- a/dummy
+++ b/dummy
@@ -9,9 +9,9 @@ License: GPL.
 
 """
 
-__version__ = "0.1.2"
-__revision__ = "$Id: dummy,v 1.4 2004/06/13 10:05:30 phd Exp $"
-__date__ = "$Date: 2004/06/13 10:05:30 $"[7:-2]
+__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]
 __author__ = "Oleg Broytmann <phd@phd.pp.ru>"
 __copyright__ = "Copyright (C) 2004 PhiloSoft Design"
 
@@ -43,6 +43,18 @@ def mcdummy_list():
    print "-r--r--r-- 1 user group 4 Jun 13 02:23 subdir/file4"
 
 
+def mcdummy_copyout():
+   """Extract a file from the VFS"""
+   # Ignore the VFS name (sys.argv[2])
+   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.close()
+
+
 g = globals()
 command = sys.argv[1]
 procname = "mcdummy_" + command