From 25b282fdb8007356be7e46bed72cf604cf85ece1 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 26 Jan 2010 18:20:43 +0000 Subject: [PATCH] add the full path to the info returned by the file tree --- deluge/ui/web/json_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index aa48b240e..8dc34763a 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -538,6 +538,7 @@ class WebApi(JSONComponent): torrent_file["progress"] = file_progress[index] torrent_file["priority"] = file_priorities[index] torrent_file["index"] = index + torrent_file["path"] = path info[path] = torrent_file # update the directory info @@ -554,6 +555,7 @@ class WebApi(JSONComponent): progresses = dirinfo.setdefault("progresses", []) progresses.append(torrent_file["progress"]) dirinfo["progress"] = float(sum(progresses)) / len(progresses) + dirinfo["path"] = dirname dirname = os.path.dirname(dirname) def walk(path, item):