FileTools : Some tools to work with files

Extension needs at least one update.
Maybe by Wednesday.

3 Likes

My Apple I bring this often. So I am waiting for the next update :grin:

It works fine:

grafik

1 Like

As far as I know, there is currently only one minor issue with Companion:

2 Likes

thanks i made my algorithm:
scan directories in /storage
ingore “self” in list (remove)
scan folders in list

Yes, but it sounds a nice idea to implement multi filter support.

There is a small issue with extension that pdf(few other files too) file’s Uri can’t be converted into path.

It will surely be fixed for AppInventor but I can’t say anything about Kodular Companion. :relieved:

3 Likes

As a workaround we can add the returned fileList to a finalList and call the method with different Filter. But a multifilter would be smarter.

1 Like

ChangeLog Version 10

Changes

  • Extension will not work in Kodular Companion for asset files
    For example, //foto.png will refer to /storage/emulated/0/AppInventor/assets/foto.png (Android < 10)
  • FileList and FileListAsync now have multi filter support (separated by ,)
  • Some internal changes

Bug Fixes

  • PathFromUri is now compatible with Android >= 10
5 Likes

@vknow360

Your Extension to good… :slightly_smiling_face::slightly_smiling_face:

But there are some problem… :confused:

When File Moved Block not working…?
Not giving any response, file moved ya field…??

Please fix this error as soon as possible… :pray::pray::pray:

You will be happy to know that extension is working fine and does not need any update.
Because those Copied and Moved events are not invoked for synchronous copy and move methods.

1 Like

But how to know when the file is moved … When Moved File event not working … Not giving any response…

Synchronous methods are run on main thread so one method will be run only when previous method has finished.
In the meantime your app’s UI is blocked to avoid further interactions, if that method requires more than usual CPU usage.

1 Like

Rally i don’t understand what you say… :face_with_head_bandage::face_with_head_bandage:

Try this block and you will understand:

grafik

2 Likes

Hello How to copy file from external storage (sdcard/file.png) to asd ? I get response " can’t copy a directory"
.i m using CopyFileAsync. But if source path from internal storage (storage/emulated/0/file.jpg) than it will be success to copy “copy succesful”

This surely isn’t a valid file path.

1 Like

what is the correct valid path? I get the source path using

File picker extension

You never show what results are you getting.
That would be useful.

2 Likes

This is my block

This respons succes if copy from internal

This respons not succes if copy from external