Android Question Illegal Folders

jonydoboi

Member
Licensed User
Longtime User
I am writing a file explorer type program. Get an error when reading the folder .android_secure
The program does not have permission to read it. An error is generated. There are at least two ways around this. They are both workarounds. It would be nice to have something like File.IsFolderLegal to test for. Is there a better way than that is shown in the example ?
IsDirectory does not work to detect illegal folders.
 

Attachments

  • TryCatch.zip
    6.6 KB · Views: 124

jonydoboi

Member
Licensed User
Longtime User
Thanks.
MLfile has a way to test with this:
Dim fs as MLfiles
Dim iso as boolean
iso = fs.IsReadable("/mnt/sdcard/testfolder") or iso = fs.Readable(File.DirRootExternal & "/" & "testfolder")
MLfiles can also move large files without delay.
Used that as well.
 
Upvote 0
Top