Moving files from 900 folders into 1 folder

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Moving files from 900 folders into 1 folder

Post by andrewferguson » Sun Oct 06, 2013 12:10 pm

Hello,
I have about 10 folders each with about 300 more folders in them. Each one of these of these 300 folders contains files. About 90% of the files in these folders are the same, but the remaining 10% are different.
What I need LiveCode to do is to take all the files in these folders, and put them all in one folder. This should also mean that there are no duplicates because they will get replaced.
Any ideas?
Thanks,
Andrew

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Moving files from 900 folders into 1 folder

Post by jmburnod » Sun Oct 06, 2013 3:23 pm

Hi andrew,

Have a look to revCopyFile or rename, files, defaultfolder

Best regards
Jean-Marc
https://alternatic.ch

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: Moving files from 900 folders into 1 folder

Post by andrewferguson » Sun Oct 06, 2013 4:47 pm

Hi,
Thanks, I think I have got it working now.
Andrew

Post Reply