summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-05 13:10:03 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-05 13:41:57 +0300
commit064ff92e2c4e181e23b569ecc032695c0b9f3440 (patch)
treed05656f3d39a57d78cc9956d324e1f681668a12e
parent56011473ac9e8612ed873b30cb261d6948260e19 (diff)
downloadobexd-064ff92e2c4e181e23b569ecc032695c0b9f3440.tar.gz
test: Use org.bluez.obex namespace in list-folders script
-rwxr-xr-xtest/list-folders10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/list-folders b/test/list-folders
index 7239d6d..ecd456c 100755
--- a/test/list-folders
+++ b/test/list-folders
@@ -6,13 +6,13 @@ import dbus
def list_folder(folder):
bus = dbus.SessionBus()
- client = dbus.Interface(bus.get_object("org.openobex.client", "/"),
- "org.openobex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex.client", "/"),
+ "org.bluez.obex.Client")
- session_path = client.CreateSession(sys.argv[1], { "Target": "ftp" })
+ path = client.CreateSession(sys.argv[1], { "Target": "ftp" })
- ftp = dbus.Interface(bus.get_object("org.openobex.client", session_path),
- "org.openobex.FileTransfer")
+ ftp = dbus.Interface(bus.get_object("org.bluez.obex.client", path),
+ "org.bluez.obex.FileTransfer")
if folder:
for node in folder.split("/"):