projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
215bf47
)
Add work around for solo os_walk
author
schon
<schon@dev03-server>
Tue, 21 Dec 2010 04:17:59 +0000
(13:17 +0900)
committer
schon
<schon@dev03-server>
Tue, 21 Dec 2010 04:17:59 +0000
(13:17 +0900)
lib/python/Components/Scanner.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Scanner.py
b/lib/python/Components/Scanner.py
index
813c09f
..
b1b36eb
100644
(file)
--- 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 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")
from mimetypes import guess_type, add_type
add_type("application/x-debian-package", ".ipk")
@@
-126,6
+126,8
@@
def scanDevice(mountpoint):
for p in paths_to_scan:
path = os_path.join(mountpoint, p.path)
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)
for root, dirs, files in os_walk(path):
for f in files:
path = os_path.join(root, f)