add a basic interface to the glob module for use by a javascript file picker widget

This commit is contained in:
Damien Churchill 2008-12-01 23:13:19 +00:00
parent 57d3517ef2
commit 443fef1d95
1 changed files with 7 additions and 0 deletions

View File

@ -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)