Copying from the assets does not work for APK (checked with AI2):
Two slashes from file:///android_asset/
are removed, result:
Runtime Error: file:/android_asset/test.1.pdf (No such file or directory)
Copying from the assets does not work for APK (checked with AI2):
Two slashes from file:///android_asset/
are removed, result:
Runtime Error: file:/android_asset/test.1.pdf (No such file or directory)
usually (and this is how the file component is implemented) to access the assets you have to use two slashes //, see also the documentation Storage
Prefix the filename with / to read from a specific file on the SD card. for instance /myFile.txt will read the file /sdcard/myFile.txt. To read assets packaged with an application (also works for the Companion) start the filename with // (two slashes).
in case this extension uses another logic, it would not be very helpful and would confuse everybody…
btw. the path file:///android_asset/
is only relevant for the webviewer to access files stored in the assets…
Taifun
Of course, I have tried this first: //test1.pdf
Doesn’t work:
Runtime Error: /test.1.pdf (No such file or directory)
Video on how to use…copy from SD card to phone or vise versa
New blocks
Added 6 new blocks:
Changes
Bug Fixes
Is there more than thank you
I have no idea about that
We need an extension of that
There is already an extension
Changes
Bug Fixes
//
in FilesList as dir to get Assets list while using Companion
Due to this extension my automatically my mobile’s all images and videos and other files lost when i export my app and install it, I dont used this extension in blocks remains unchanged, get file path only this block is used… and after installing all data lost… if it is a bug then solve it… if it is hacked then dont use anyone…
you might want to provide a screenshot of your relevant blocks…
and why do you think, the extension deleted all these files?
Taifun
I don’t think it is even possible…but you can give more details so that I can fix bugs if there is any…
It is quite confusing…you should elaborate more…
I think when we use delete file component and set path to empty it will delete all files…
No it will not delete all files if path is set to empty…but it will delete all files if path is set to /
because it is path toroot folder which contains all files of SD card.
I think thats my problem… thank you…
Changes
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.