FileTools : Some tools to work with files

ChangeLog Version 6

Changes

  • Removed some un-neccessary methods and imports which reduced aix size (40 kb to 31kb) :sweat_smile:
  • Some internal changes like using empty string in any path socket will also return an empty string
    Thanks to @Boban BTW, Looks like you still have an old version of extension :smile:
  • Fixed several spelling and grammar mistakes
1 Like

Thank for the extension.

Could you please assist me to delete a file in the APK?

Both companions and APK return file exists=true but only in companion delete successfully.

image

I think it needs write permission.
Ask this permission at screen initialize:
android.permission.WRITE_EXTERNAL_STORAGE

4 Likes

Thanks working now.

1 Like

@vknow360 @Taifun
These blocks do not return a list of files from the assets from Kodular (with Companion):
/storage/emulated/0/Makeroid/assets/…

grafik

If there is an AppInventor folder: /storage/emulated/0/AppInventor/assets/…
these blocks return a list of the files in that (AI) assets folder.

How many errors and problems have already been caused by this unnecessary name change from “AppInventor” to “Makeroid”?

2 Likes

well, uncountable errors… :wink:
this once was the decision of Kodular formerly known as Makeroid… see also

and after the rebranding to Kodular now everybody is wondering, where does that Makeroid folder come from?

Taifun

2 Likes

Yes, this further name change (from Makeroid to Kodular) doesn’t make it better and certainly not easier to understand.

sometimes you make decisions and later you find out, that it was not a good one…
same with the 2 different sound components (Sound and Player) in App Inventor…
we have to take it as it is…

Taifun

ChangeLog Version 7

Bug Fixes

  • Fixed bug in FileListFromAssets method

Thanks to @bodymindpower :slightly_smiling_face:

3 Likes

Does this block also work with AI2 ?

2 Likes

Yes it works :100: with AI2

3 Likes

can i create a folder lock or password?
can you please help me

I think not, but you can zip a folder with a password(not with this extension).

Simply you can’t (Learn Why?)
But you can do this:

And thank you @DevYB for giving me an awesome idea.

finally I got something to work on during this boring and lonelyfull lockdown :sweat_smile:

3 Likes

one time download file?
it is possible?
can you please explain with blocks image

Yes it is possible.
You have to check that file exists or not.If it does not exists then download it else proceed.

5 Likes

can you create blocks for me
please help
i need want just blocks image

Can I know what you have tried from yourself?

2 Likes

when I use the FilelistAsync method the application closes

1 Like

Thank you.
Can you please check copyfileasync and movefileasync methods?

1 Like