FileTools : Some tools to work with files

A file path luoks like this


> /storage/emulated/0/Android/data/io.makeroid.companion/files/Kodular/assets/The Story Book: Watu wenye uwezo Usio wa Kibinadamu..mp4

Tha is what I know

That’s right.

Now compare it with values you are providing in des parameter.

Sure, but it doesn’t work with des in such way but I tried it in this way and it worked perfect without error in my Android version 9

At first you were putting ASD path in des, Then /Download/AI Tech/ and then a list of /Download/AI Tech/ and file path.
None of these was going to work obviously.

At the end of the day, I would suggest you to work more on your logics.

Sure I undestand your suggestion I will real try to check the logic and make it not complecated.

But please here is my
Move_File.aia (44.9 KB)
can you try to suggest how I can get the mp4 thumbnail

Blocks you sent in pm are right except thumbPath argument.
Either put empty text or provide a non-existing image path.

I have real tried this most of times but I am getting the error like this

 ["java.lang.RuntimeException: setDat,aSource failed: status = 0x80000000", 

See the blocks I don’t know where am real wrong

I will appreciate if you show the blocks that works from your end.

Something wrong with that 4th video file.

1 Like

is this extension able to work with Android 12, 13, 14?

or is it need any permissions?

becouse I want acess /storage/emulated/0/Download folder for create & delet folders in all Android versions.

the extension works in any Android version, but you might have to ask for permissions depending on what you are trying to do

you only can delete a subfolder in shared storage /Download if that subfolder has been created by your app. The folder must be empty or contain only files, which have been created by your app

Taifun

Okay I got it, is there any permission needed for Android 11+ ? I don’t have 11+ device that’s why I am asking :slightly_smiling_face:

Depends upon what you are trying to do.

just want to create folder for my app and store pdf files in that created folder which is present in /Download/MyFolder

No permission required then, unless user uninstalls your app and tries to access those files with your app.

I recommend you to read this:

1 Like

yes I already readed this topic and I got confused for Android sdk 33 there are three permissions read image, read video, read music this confused me for my work wich permission is good to use.

Are you dealing with media (image , video and audio) files?

no only want to create my app folder in shared storage /Download and want to store pdf files in it which are generated by apps.

I suppose you have found the answer then.

1 Like

hello @vknow360 I need your small help can you give a small update to extention?

I am working with FileListAcync function and found its not loads .exo files it returns only empty List so can you add this functionality to work also with .exo files .

and I didn’t found rename function event block.

Show file list blocks. This is highly impossible unless you are specifically filtering file types.

It is a synchronous method so no need for event.