What's the syntax to check if a local folder exists?

Bob Sneidar bobs at twft.com
Tue Jun 7 11:44:22 EDT 2011


You can say "there is not"?? Well I'll be damned! 

Bob


On Jun 7, 2011, at 7:37 AM, Keith Clarke wrote:

> Great, thanks to all who responded!
> 
> Blindingly obvious once viewed with hindsight - and as Colin rightly suggests, it seems 'there is' still much I need to learn about the subtleties of the LiveCode syntax! ;-)
> 
> I went for a matching pair of one-liners, which worked very nicely: 
> 
> if there is not a folder "this_folder" then create folder "this_folder"
> if there is not a folder "this_folder/that_subfolder" then create folder "this_folder/that_subfolder"
> 
> Best,
> Keith..
> 
> On 7 Jun 2011, at 15:16, Keith Clarke wrote:
> 
>> Hi folks,
>> I've tried to check if a folder 'is empty' or 'is not true' but I'm obviously missing the magic word - and I know it's not 'please', as LiveCode ignores all my pleading! ;-)
>> Why do I get the feeling it's another one of those 'obvious as soon as you know it' things(?)
>> Best,
>> Keith..  
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list