Copy folder on Android...

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tjo.mobile
Posts: 18
Joined: Tue Oct 25, 2016 8:09 pm

Copy folder on Android...

Post by tjo.mobile » Mon Nov 07, 2016 5:20 am

I want to copy a folder from my apps sandboxed folder to the sdcard so the user can back up their data.

I saw revCopyFolder in the dictionary, which looked perfect, until I realized it doesn't work on Android.

Is there something similar for Android? If I want to copy a folder from my app to the sdcard what is the best way?

I can use

Code: Select all

create folder "/mnt/sdcard/test333"
to create a folder on the sdcard, but how can I copy an entire folder and its contents to the SD card from my app's folder?

Thanks for any advice or suggestions,

TJ.

tjo.mobile
Posts: 18
Joined: Tue Oct 25, 2016 8:09 pm

Re: Copy folder on Android...

Post by tjo.mobile » Mon Nov 07, 2016 6:49 am

I sort of solved this by getting a list of the files in the folder to copy, create a new folder on the SD card, and copy each file into the new folder.

It works fine, however if there is a faster/easier way to just copy an entire folder on Android I'd love to know how.

Thanks,

TJ.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Copy folder on Android...

Post by jmburnod » Mon Nov 07, 2016 12:46 pm

Hi Tj
I sometimes use rename folder to do that on iOS
I hope it works on android
Best regards
Jean-Marc

Edit: Sorry "rename folder" only change the location but doesn't a copy
https://alternatic.ch

Post Reply

Return to “Android Deployment”