1 #! /usr/local/bin/python -O
4 Dummy VFS for Midnight Commander. Just for a test.
6 Author: Oleg BroytMann <phd@phd.pp.ru>.
7 Copyright (C) 2004 PhiloSoft Design.
13 __revision__ = "$Id: dummy,v 1.2 2004/06/12 22:42:29 phd Exp $"
14 __date__ = "$Date: 2004/06/12 22:42:29 $"[7:-2]
15 __author__ = "Oleg Broytmann <phd@phd.pp.ru>"
16 __copyright__ = "Copyright (C) 2004 PhiloSoft Design"
21 sys.stderr.write(msg + '\n')
24 sys.stderr.write(msg + '\n')
30 It is not a program - it is a dummy VFS for Midnight Commander.
31 Put it in /usr/lib/mc/extfs.""")
35 """List the entire VFS"""
36 # Ignore the VFS name (sys.argv[2])
37 # Emit a dummy listing
38 print "-r--r--r-- 1 user group 0 Jun 13 02:20 file0"
39 print "-r--r--r-- 1 user group 1 Jun 13 02:21 file1"
40 print "-r--r--r-- 1 user group 2 Jun 13 02:22 file2"
45 procname = "mcdummy_" + command
47 if not g.has_key(procname):
48 error("Unknown command %s" % command)