J jonydoboi Member Licensed User Longtime User Nov 2, 2014 #1 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 TryCatch.zip 6.6 KB · Views: 319
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.
thedesolatesoul Expert Licensed User Longtime User Nov 2, 2014 #2 Maybe try this lib: http://www.b4x.com/android/help/mlfiles.html Upvote 0
J jonydoboi Member Licensed User Longtime User Nov 8, 2014 #3 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
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.