Merge "vndk-def: Check access in _enumerate_path()"

This commit is contained in:
Treehugger Robot
2018-06-20 04:01:25 +00:00
committed by Gerrit Code Review

View File

@@ -2666,6 +2666,8 @@ def _enumerate_partition_paths(partition, root):
for base, dirs, files in os.walk(root):
for filename in files:
path = os.path.join(base, filename)
if not is_accessible(path):
continue
android_path = posixpath.join('/', partition, path[prefix_len:])
yield (android_path, path)