If you think that the recursion is the cause of any perceived slow-down,
there is an alternative of using a non-recursive version in pure LC.
I posted one such example to the use-list on 26th Oct in the thread
recursion limit when creating file list of harddrive
And being pure LC, you can easily add in callbacks etc. to show progress
updates .....
-- Alex.
On 11/11/2015 12:54, Malte Brill wrote:
Hi all,
as the livecode solutions tend to become rather slow if there is a certain
amount of nesting involved, I want to come up with a shell alternative to
directorywalking. something like
— [snip]
set the hideconsoleWindows to true
switch
case „win“ is in the platform
put "dir " & tPath && "/b /s /A-D" into tShellCommand
— tPath needs to be a Windows path using backslashes and needs to be quoted
break
case „linux“ is in the platform
— todo
break
case „mac“ is in the platform
— todo
break
end switch
return shell(tShellCommand
—[snap]
This returns for example:
C:\Users\Malte
Brill\Documents\archaeodox\2013-480\dokumentationsschritte\10\2013-480_ds_10_1.JPG
C:\Users\Malte
Brill\Documents\archaeodox\2013-480\dokumentationsschritte\10\2013-480_ds_10_2.JPG
C:\Users\Malte
Brill\Documents\archaeodox\2013-480\dokumentationsschritte\11\2013-480_ds_11_1.JPG
C:\Users\Malte
Brill\Documents\archaeodox\2013-480\dokumentationsschritte\11\2013-480_ds_11_2.JPG
C:\Users\Malte
Brill\Documents\archaeodox\2013-480\dokumentationsschritte\11\2013-480_ds_11_3.JPG
…
where tpath was:
"C:\Users\Malte Brill\Documents\archaeodox\2013-480\dokumentationsschritte“
Can anyone help me with the Linux and Mac counterparts. Ideally with the same
output?
Best,
Malte
--
derbrill IT-service Malte Pfaff-Brill
Alsenstr. 15, d-24768 Rendsburg
Tel: +49 4331-337 640 0
eMail: i...@derbrill.de web: http://www.derbrill.de
Steuernummer: 28 015 03865 VAT ID: DE223571286
Bankverbindung: BIC: GENODEF1KIL IBAN: DE87 2109 0007 0088 2849 05 Kieler
Volksbank e.G.
Kontoinhaber Malte Pfaff-Brill
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode