FileTools : Some tools to work with files

Do you mean it is one by one file and not the all in list files if applicable?

Carefully check what to or des argument expects and what you are providing.

1 Like

I want to move all in list after using this block
blocks
then response of this
component_event
then move all to my /storage/emulated/0/Download/AI Tech/

What I am trying to say is that to parameter accepts a file path not a folder path.

1 Like

Okay now if I want to send move those how should I do it

[“/storage/emulated/0/Android/data/io.makeroid.companion/files/Kodular/assets/The Story Book: Watu wenye uwezo Usio wa Kibinadamu…mp4”,
“/storage/emulated/0/Android/data/io.makeroid.companion/files/Kodular/assets/The Story Book: Watu wenye uwezo Usio wa Kibinadamu.-1.mp4”, “/storage/emulated/0/Android/data/io.makeroid.companion/files/Kodular/assets/The Story Book: Mtoto Jambazi Aliyepata Umaarufu Kwa Kuuliwa Kikatili / Robert ‘Yummy’ Sandifer.mp4”, “/storage/emulated/0/Android/data/io.makeroid.companion/files/Kodular/assets/The Story Book: ''Tufanye Mapenzi Ufe ‘’ Kisa Cha Tiger Jike…mp4”]

I have never done this before that is why I am confused how to do it

It’s very basic thing.
Provide file path in to paramter instead of folder path.

From understanding your suggestion I am thinking about this
blocks (1)

But I am not sure if it will work

or even this

What do you think a file path looks like?

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.