am trying to perform a recursive directory listing by using the following code:
final storage = Directory('/storage/3366-6231'); List<FileSystemEntity> list = storage.listSync(recursive: true); list.forEach((entity) { print(entity.path); });
but the listing stops as soon as it tries to open .android-secure with the error (OS Error: Permission denied, errno = 13)
Is there a way to continue listing and ignore the folders to which we have no access to?
https://stackoverflow.com/questions/66006698/how-to-escape-folder-which-doesnt-have-access-permission February 02, 2021 at 05:15PM
没有评论:
发表评论