File System

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Kevin
Posts: 74
Joined: Fri Oct 02, 2009 3:47 pm

File System

Post by Kevin » Sat Nov 07, 2009 6:01 pm

How do I check if a folder exists?

ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Post by ukimiku » Sat Nov 07, 2009 6:15 pm

Put a button on a new stack and this code into its handler

Code: Select all

on mouseUp
   answer folder "Please choose a folder:"
   put it into tFolder
   if there is a folder tFolder and tFolder <>"" then
      answer "exists"
   else
      answer "does not exist"
   end if
end mouseUp

Kevin
Posts: 74
Joined: Fri Oct 02, 2009 3:47 pm

Ah

Post by Kevin » Sat Nov 07, 2009 9:17 pm

Completely forgot about that construct thanks!

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”