Extension: Explorer files and directories.by Juan

132 views
Skip to first unread message

albert choong

unread,
Sep 20, 2017, 7:09:50 AM9/20/17
to MIT App Inventor Forum
I am using Juan's Extension: Explorer files and directories.

Everything is working very fast and fine, but I noticed that if I have a folder name like this:

I'm A Rebel

then it would not show the contents inside eg. Mp3 files.

But if I rename my folder to:

I Am A Rebel

then it will show all the files inside it.

I tried the latest version and the previous version and have the same results.

Evan Patton

unread,
Sep 20, 2017, 9:49:53 AM9/20/17
to MIT App Inventor Forum
This is probably an issue of quote escaping. What happens if you try I\'m A Rebel?

Evan

albert choong

unread,
Sep 20, 2017, 10:48:36 AM9/20/17
to MIT App Inventor Forum
Okay I have just tried to rename my folder from-

I'm A Rebel

To

I\'m A Rebel

Now it shows up the folder name as:
I_'m A Rebel
and still does not show any contents of that folder.

Evan Patton

unread,
Sep 20, 2017, 2:44:18 PM9/20/17
to MIT App Inventor Forum
Hi albert,

You shouldn't rename the folder, but rather when you use Juan's extension to list its contents, you may need to replace the ' with \' because the extension might not be properly escaping it. Typically, ' and " are used to quote strings in a Unix environment and so it might be interpreting the unescaped ' as the start of a new string that is not terminated, and therefore why you don't get any results.

Evan

albert choong

unread,
Sep 20, 2017, 8:30:34 PM9/20/17
to MIT App Inventor Forum
Hi Evan

oops sorry, misunderstood that part - I\'m A Rebel

Will try your suggestion to replace the ' with \'  in the app itself

Thanks!

albert choong

unread,
Sep 20, 2017, 10:06:01 PM9/20/17
to MIT App Inventor Forum
Hi Evan

I've tried your suggestion to replace the ' with \'  in the app itself but it does not work.

Here is a snippet of what I did...


Taifun

unread,
Sep 21, 2017, 8:04:59 AM9/21/17
to MIT App Inventor Forum
I've tried your suggestion to replace the ' with \'  in the app itself but it does not work.
in this case just avoid special characters in directory names...
Taifun

Juan Antonio

unread,
Sep 21, 2017, 8:14:03 AM9/21/17
to MIT App Inventor Forum
New version.

Thank you albert and Evan for this information.

I fix code extension, I think now work.

Can you try, please?



com.KIO4_Explorer.aix

albert choong

unread,
Sep 21, 2017, 8:54:13 PM9/21/17
to MIT App Inventor Forum
Hi Juan,

I've tested the new version of the aix file, but still can't display the files inside the folder
with name: I'm A Rebel (Remastered 2005)

Other folders are okay eg: Accept (Remastered 2000)

(see pictures below)

I'm using the latest .aia file: p280i_Extension_Explorador_v2


Juan Antonio

unread,
Sep 22, 2017, 3:47:36 AM9/22/17
to MIT App Inventor Forum
Hi albert,

this works for me, I can display the files inside the folder with name: I'm A Rebel (Remastered 2005)
01 I'm A Rebel.mp3
02 Save Us.mp3
03 No Time To Lose.mp3

I created the folder 1980 -  I'm A Rebel (Remastered 2005) with sounds file and I can list those files.




p280i_Extension_Explorador_v2.aia

albert choong

unread,
Sep 22, 2017, 5:48:26 AM9/22/17
to MIT App Inventor Forum
Hi Juan

Thanks for the quick reply.

I've tried the latest one but it somehow does not work on my phone.

My phone is LG X Power running Android 6.0.1 Marshmallow.
I've made it into an apk and run it and also re-copied my folders that were affected but still cannot display.

I've also tried it on another phone - Xiaomi Redmi 1S running Android 4.4.4 KitKat and it also does not work.

Only that folder with name I'm A Rebel has problems displaying its contents, all other folder are just fine.

But when I rename the affected folder to I Am A Rebel - then it works!!!

Maybe it's just my phones.


Anyway thank you Juan for all your help!
Really appreciate it  :)

Reply all
Reply to author
Forward
0 new messages