Recursive folder creation

hh hh at hyperhh.de
Mon Aug 7 15:12:22 EDT 2017


> Brian wrote:
> Check out _revSBEnsureFolder in revSBLibrary for example code that does this.

Brian, WOW! This is great insight!

on mouseUp
  put "/Users/admin/Documents/brian3/showed/us/the/trick/of/marcus/" into ff
  call "revSBEnsureFolder ff" of stack "revSBLibrary"
  launch document ff
end mouseUp

> Tore wrote:
> 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

Clever, Tore.





More information about the Use-livecode mailing list