From 443fef1d95d36a259d0639634742676e558abfbe Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 1 Dec 2008 23:13:19 +0000 Subject: [PATCH] add a basic interface to the glob module for use by a javascript file picker widget --- deluge/core/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index 6d895ff48..6a98fa21e 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -27,6 +27,7 @@ import gettext import locale import pkg_resources import sys +import glob import shutil import os import os.path @@ -758,3 +759,9 @@ class Core( self.signals.emit("torrent_queue_changed") except KeyError: log.warning("torrent_id: %s does not exist in the queue", torrent_id) + + def export_glob(self, path): + return glob.glob(path) + + def export_iglob(self, path): + return glob.iglob(path)