From e79ffd8ffa3cfccd0e8f7fb091b483b389aa9c63 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 27 Aug 2010 23:40:50 +0200 Subject: list now accept listr which lists files at a remote host. --- server_communication.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server_communication.c') 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; +} -- cgit v1.2.3