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

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Sat Jun 11 02:22:30 CDT 2011

Just to say thanks again for all the responses and insights.

This project is destined to become a Revlet. I was thinking that creating some folders in the temporary special folder would be a safe, easy, cross-platform option to manage a 'behind the scenes' zip file download and extraction - to get at the archived xml files. It seems things may not be that simple - as per usual! 

So, now that I've got my head around some of the file-based revZip features, I'm going to see if I can keep the zip file download, extraction and XML manipulation in memory.

On 7 Jun 2011, at 15:37, 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..  

More information about the use-livecode mailing list