diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-27 23:40:50 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-27 23:40:50 +0200 |
commit | e79ffd8ffa3cfccd0e8f7fb091b483b389aa9c63 (patch) | |
tree | bfe61b152c1b8788452b7874d926da152e20e35c /server_communication.c | |
parent | f8d1c20542111b9f359f4362638423ab23ed81c5 (diff) |
list now accept listr which lists files at a remote host.
Diffstat (limited to 'server_communication.c')
-rw-r--r-- | server_communication.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server_communication.c b/server_communication.c index 448ebbf..cc37cde 100644 --- a/server_communication.c +++ b/server_communication.c @@ -102,3 +102,11 @@ gchar **server_find(struct server *server, const gchar *type, const gchar *str) return data; } + +gchar **server_list(struct server *server, const gchar *directory) { + gchar *cmd = g_strdup_printf("list %s\nexit\n", directory); + gchar **data = server_get_stringlist(server, cmd); + g_free(cmd); + + return data; +} |