Alberto Iglesias Well-Known Member Licensed User Longtime User Dec 16, 2015 #1 Anyone knows how we can copy a entire folder to another folder? I see in B4a can copy one by one. Any way to do this easily? like something this in linux: B4X: cp -rf iDeb.app /tmp B4X: For Each f As String In File.ListFiles("folder") If File.IsDirectory("folder", f) = False Then File.Copy("folder", f, ...) End If Loop
Anyone knows how we can copy a entire folder to another folder? I see in B4a can copy one by one. Any way to do this easily? like something this in linux: B4X: cp -rf iDeb.app /tmp B4X: For Each f As String In File.ListFiles("folder") If File.IsDirectory("folder", f) = False Then File.Copy("folder", f, ...) End If Loop
imbault Well-Known Member Licensed User Longtime User Dec 16, 2015 #2 Hi Alberto, I had to deal with the same question, then I wrote a folder copy routine, using B4i file primitives fonctions Upvote 0
Hi Alberto, I had to deal with the same question, then I wrote a folder copy routine, using B4i file primitives fonctions
Alberto Iglesias Well-Known Member Licensed User Longtime User Dec 16, 2015 #3 yes.... i need to do this too. Im thinking in create a library Upvote 0
imbault Well-Known Member Licensed User Longtime User Dec 16, 2015 #4 Alberto, it would be very useful Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Dec 16, 2015 #5 I can´t do today ,in here is almost 23:00, but tomorrow is already and I send to you! Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Dec 16, 2015 #6 Did you tried File.Copy(ParentFolder, FolderToCopy,...) I think it should work Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 17, 2015 #7 A library will not make it faster. I don't see any reason to implement it with Objective C. Upvote 0