Recursive folder creation
tore.nilsen at me.com
Mon Aug 7 14:40:32 EDT 2017
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:
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
> 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com>:
> 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?
More information about the Use-livecode