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

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Tue Jun 7 09:37:41 CDT 2011

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"


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