FileTools : Some tools to work with files

What is the directory for both onboard and expandable storage of a device? I have used file:///mnt/sdcard/ but it’s only working for onboard storage. Do I have to read expandable storage separately with the help of another directory or is there any other combine directory to read whole device storage(onboard and expandable)?

It does not work on all devices.
Try using /storage/emulated/0/

Please elaborate this more.

1 Like

/storage/emulated/0/ :point_left: this is for device onboard(internal) storage & /storage/82C3-E96C/(NOT WORKING) :point_left: is for expandable(removable micro SD card) storage So Do I have to read both storage separately with the help of different directories or is there any other combine directory to read whole device storage(internal and micro SD card)?

I think you have to use different directories to read different storage directories.
I can be wrong because I have no knowledge of modern storage structures.
So you have to wait to get correct answer.

1 Like

See here:

and here:

1 Like

Goal : Extraction of data from both internal and micro SD card(If expandable storage is available)

*** Any comments or suggestions would be appreciated.

1 Like

Have you granted read / write permissions?

1 Like

Yeah I have granted.

Everything seems correct.
It should work.

:point_right: :point_right:Last modification date 01/01/1970 05:30:00 AM (for each and every file)

Capturetimemodi

Mistakes are solved here :point_right:FileTools : Some tools to work with files - #168 by Coder007

What exactly is it about? What do you want to achieve?

Probably a bug.
Let me check it.

1 Like

Could you add an option to sort(descending) files according to date of last modification?

1 Like

and post a test aia.

See here:

Does my test APK (getDirs.apk) work for you?

Show this:

grafik

1 Like

I haven’t tested the apk file of your. I just followed the process of the image, you have posted. My apk is working as it should.

Ok, so where is the problem?

These blocks are working as it should. Not an issue so far.