rename folder not working?
bobsneidar at iotecdigital.com
Thu Dec 14 13:35:19 EST 2017
Hey that's a good one.
> On Dec 14, 2017, at 10:31 , J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> 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
More information about the Use-livecode