"""ObexFTP Virtual FileSystem for Midnight Commander
-Author: Oleg BroytMann <phd@phd.pp.ru>.
-Copyright (C) 2004-2007 PhiloSoft Design.
-License: GPL.
-
Manipulate a cell phone's filesystem calling obexftp binary. This is a complete
user-mode solution, no kernel modules required (unlike SieFS or such). The
script implements all commands of Midnight Commander VFS, except for
and the channel for your device by using commands like "hcitool scan" and
"sdptool browse".
+For the USB put the interface number: "usb interface".
+
For the TTY put the device name: "tty /dev/ttyUSB0".
For the IrDA: just put "IrDA" in the file.
"""
-__version__ = "1.2.4"
+__version__ = "1.3.0"
__revision__ = "$Id$"
__date__ = "$Date$"[7:-2]
-__author__ = "Oleg Broytmann <phd@phd.pp.ru>"
-__copyright__ = "Copyright (C) 2004-2007 PhiloSoft Design"
+__author__ = "Oleg Broytman <phd@phd.pp.ru>"
+__copyright__ = "Copyright (C) 2004-2010 PhiloSoft Design"
+__license__ = "GPL"
# Change this to suite your needs
-obexftp_prog = "/usr/local/obex/bin/obexftp"
+obexftp_prog = "/usr/bin/obexftp"
import sys, os, shutil
elif len(parts) > 3:
transport_error("too many arguments for 'bluetooth' transport")
return ' '.join(["-b", parts[1], "-B", parts[2]])
+ elif transport == "usb":
+ if len(parts) < 2:
+ transport_error("not enough arguments for 'usb' transport")
+ elif len(parts) > 2:
+ transport_error("too many arguments for 'usb' transport")
+ return ' '.join(["-u", parts[1]])
elif transport == "tty":
if len(parts) < 2:
transport_error("not enough arguments for 'tty' transport")