Hey that's a good one. 

Bob S


> On Dec 14, 2017, at 10:31 , J. Landman Gay via use-livecode 
> <[email protected]> wrote:
> 
> I'd saved this one:
> 
> on revSBEnsureFolder pFolder
>  set the itemDel to "/"
>  if there is no folder pFolder and pFolder is not empty then
>    revSBEnsureFolder item 1 to -2 of pFolder
>    if the result is not empty then return the result
>    create folder pFolder
>    return the result
>  end if
> end revSBEnsureFolder
> 
> On 12/14/17 11:02 AM, Alex Tweedly via use-livecode wrote:
>> Write yourself (or check if the Master Library already has) a little function
>>  ensureFolderExists pPathName
>> which will iterate down the elements of the path, checking htey exist, or 
>> creating if need be.
>> (I *know* I have one somewhere - but it would be faster to re-write than to 
>> find :-)
>> Then use that before the revCopyFolder
>> Alex


_______________________________________________
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

Reply via email to