]> git.phdru.name Git - extfs.d.git/commitdiff
Dummy VFS for Midnight Commander. Just for a test.
authorOleg Broytman <phd@phdru.name>
Sat, 12 Jun 2004 22:14:57 +0000 (22:14 +0000)
committerOleg Broytman <phd@phdru.name>
Sat, 12 Jun 2004 22:14:57 +0000 (22:14 +0000)
git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@2 1a6e6372-1aea-0310-bd00-dc960550e1df

dummy [new file with mode: 0755]

diff --git a/dummy b/dummy
new file mode 100755 (executable)
index 0000000..312a47d
--- /dev/null
+++ b/dummy
@@ -0,0 +1,32 @@
+#! /usr/local/bin/python -O
+
+"""
+Dummy VFS for Midnight Commander. Just for a test.
+
+Author: Oleg BroytMann <phd@phd.pp.ru>.
+Copyright (C) 2004 PhiloSoft Design.
+License: GPL.
+
+"""
+
+__version__ = "0.0.1"
+__revision__ = "$Id: dummy,v 1.1 2004/06/12 22:14:57 phd Exp $"
+__date__ = "$Date: 2004/06/12 22:14:57 $"[7:-2]
+__author__ = "Oleg Broytmann <phd@phd.pp.ru>"
+__copyright__ = "Copyright (C) 2004 PhiloSoft Design"
+
+import sys
+
+def log_error(msg):
+   sys.stderr.write(msg + '\n')
+
+def error(msg):
+   sys.stderr.write(msg + '\n')
+   sys.exit(1)
+
+
+if len(sys.argv) < 2:
+   error("Not enough arguments")
+
+
+cmd = sys.argv[1]