![]() relative path) to delete a file on the SD card.įor instance /myFile.txt will delete the file /mnt/sdcard/myFile.txt. ![]() You can't move files from or to the assets The move process is finished after the Moved event fires.įor instance /myFile.txt will move the file /mnt/sdcard/myFile.txt. If a fileName starts with file:/// you can specify a complete path to the file. You can't move files from or to the assets. relative path) to move a file on the SD card.įor instance /myFile.txt will move the file /mnt/sdcard/myFile.txt. Use this method to move small files, for large files use the MoveAsync method instead. Thank you Haider for being the sponsor of this method! The copy process is finished after the Copied event fires.įiles to the assets. You can specify a complete path to the file. However you can't copyįiles to the assets. To copyĪssets packaged with an application (also works for the Companion) start relative path) to copy a file on the SD card.įor instance /myFile.txt will copy the file /mnt/sdcard/myFile.txt. Use this method to copy small files, for large files use the CopyAsync method instead. Specifies whether Warnings should be suppressed Returns whether Warnings should be suppressed However as the file component still does have some permission issues, you might prefer to continue using the file extension. Generally in a perfect App Inventor world my suggestion would be to use the corresponding methods from the file component now. ![]() assets directory adjusted for companion app and devices = 11,īecause WRITE permission does no longer exist on Android 11+ (with targetSdk = 30). Oct 28h, 2021: Version 14: asset path for companion app adjusted according toĭec 17h, 2021: Version 14a: Kodular fix. Path to assets for Kodular companion app still does not use ASD for devices >= API29 Oct 23th, 2020: Version 13: Android 11 bugfix (null array) for DirectoryList and FileList: /Android/data and /Android/obb not accessible anymore,įileListFromAssets now also works in Kodular in the companion app and for devices >= API 29įeb 13th, 2021: Version 13a: bugfix copy from assets concerning check if file exists, Oct 2019) for AvailableStrorageDirectories method updated March 31th, 2020: Version 12: underlying library (latest version as of 23. July 21th, 2019: Version 11: underlying library for AvailableStrorageDirectories method updated March 21th, 2019: Version 10: new methods ApplicationSpecificDirectory and CreateApplicationSpecificDirectory added Sep 10th, 2017: Version 9: new method FileListFromAssets added Jan 16th, 2017: Version 8: new methods Move, CopyAsync and MoveAysnc, new events Copied and Moved added May 8th, 2016: Version 5: DirectoryList method addedĪug 11th, 2016: Version 5b: avoid DX execution failed error: build each extension separatelyĭec 19th, 2016: Version 6+7: GetUri, AvailableStorageDirectories, AvailableSize methods addedĭec 30th, 2016: Version 7a: AvailableSize method now works for API Level 9 and above May 5th, 2016: Version 4: GetFileName from media content uri method added Mar 30th, 2016: Version 3b: bug fix for Exists method, see also Mar 25th, 2016: Version 3a: better error message will be provided for Copy block, see also Mar 11th, 2016: FileList: includeSubdirectories option added, FileListAsync method added. Nov 16th, 2015: Copy and Delete blocks added, built for App Inventor version ai2extensions6 and Companion version 235.cdk2. Oct 12th, 2015: Rebuilt the extension for App Inventor version ai2extensions4 and Companion version 233.cdk2. Sept 7th, 2015: Added the version number (version 1 as of ) in the help text of the extension. Sept 6th, 2015: Fixed the delete button to delete the extension and added a help text for the extension. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. See the App Inventor Extensions document about how to use an App Inventor Extension.įor questions about this extension or bug reports please start a new thread in theįor feature requests please contact me by email.
0 Comments
Leave a Reply. |