Since we do not need to check whether a folder exists or not before creating it
as LiveCode will not create duplicate folders, here is a script that will
create nested folders:
on mouseUp
put specialFolderPath("desktop")& "/testFolder/testOne/test/result" into
tFolder
set the itemDel to "/"
repeat with i = 1 to the number of items of tFolder
put item 1 to i of tFolder into tFolderToCreate
create folder tFolderToCreate
end repeat
end mouseUp
Regards
Tore
> 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode
> <[email protected]>:
>
> 2) Does it make sense to ask for an enhancement request for the engine to
> recursively create folders for a path where itemdel "/" and items -1,-2,-3
> (sub folders) do not exist?
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode