Is there a way to check for file or directory existence prior to loading/reading/deleting/etc? I'd rather not shell out to an external command just for this. I can't find anything on this topic either in the docs or on the internet.
Thanks.
Larry
Checking for File Existence
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Checking for File Existence
See the "there is" operator, e.g.:
if there is a file tFile then...
or
if there is a folder tFolder then...
if there is a file tFile then...
or
if there is a folder tFolder then...
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Checking for File Existence
Argh! Me thinks the simplicity of the language is givin' me scurvy!
Thank you so much. That makes a lot of sense.
Larry
Thank you so much. That makes a lot of sense.
Larry