mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +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
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@ import gettext
|
||||||
import locale
|
import locale
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
import sys
|
import sys
|
||||||
|
import glob
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -758,3 +759,9 @@ class Core(
|
||||||
self.signals.emit("torrent_queue_changed")
|
self.signals.emit("torrent_queue_changed")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
log.warning("torrent_id: %s does not exist in the queue", torrent_id)
|
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…
Add table
Add a link
Reference in a new issue