From: Oleg Broytman Date: Sun, 13 Jun 2004 13:26:57 +0000 (+0000) Subject: Version 1.0. rm, mkdir, rmdir. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=60982ee2bb974241f897602a70ae21f277982f66;p=extfs.d.git Version 1.0. rm, mkdir, rmdir. git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@8 1a6e6372-1aea-0310-bd00-dc960550e1df --- diff --git a/dummy b/dummy index 0baad44..5e580b5 100755 --- a/dummy +++ b/dummy @@ -9,9 +9,9 @@ License: GPL. """ -__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] +__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" @@ -67,6 +67,36 @@ def mcdummy_copyin(): real_file.close() +def mcdummy_rm(): + """Remove a file from the VFS""" + # Ignore the VFS name (sys.argv[2]) + dummy_filename = sys.argv[3] + + real_file = open(".dummy.tmp", 'a') + real_file.write("Remove %s\n" % dummy_filename) + real_file.close() + + +def mcdummy_mkdir(): + """Create a directory in the VFS""" + # Ignore the VFS name (sys.argv[2]) + dummy_dirname = sys.argv[3] + + real_file = open(".dummy.tmp", 'a') + real_file.write("Create %s\n" % dummy_dirname) + real_file.close() + + +def mcdummy_rmdir(): + """Remove a directory from the VFS""" + # Ignore the VFS name (sys.argv[2]) + dummy_dirname = sys.argv[3] + + real_file = open(".dummy.tmp", 'a') + real_file.write("Remove %s\n" % dummy_dirname) + real_file.close() + + g = globals() command = sys.argv[1] procname = "mcdummy_" + command