mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 18:10:43 +00:00
add a basic interface to the glob module for use by a javascript file picker widget
This commit is contained in:
parent
57d3517ef2
commit
443fef1d95
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user