X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FScanner.py;h=a004204e1388dd9f86b9580686a3535b39d34d1a;hp=e01c61fd02c8647e6947d0ba675485d0dc28a10a;hb=a9984df92fc78bd4955b24502724b74b935dcc3f;hpb=417e393cbc7b4fd22482aa21cdeeb3e8dec3128c diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py index e01c61f..a004204 100644 --- a/lib/python/Components/Scanner.py +++ b/lib/python/Components/Scanner.py @@ -1,7 +1,7 @@ from Plugins.Plugin import PluginDescriptor from Components.PluginComponent import plugins -from os import path as os_path, walk as os_walk +from os import path as os_path, walk as os_walk, system from mimetypes import guess_type, add_type add_type("application/x-debian-package", ".ipk") @@ -128,6 +128,8 @@ def scanDevice(mountpoint): for p in paths_to_scan: path = os_path.join(mountpoint, p.path) + cmd = "ls " + path + system(cmd) for root, dirs, files in os_walk(path): for f in files: path = os_path.join(root, f)