[futurebasic] Workarounds for the FOLDER function?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2009 : Group Archive : Group : All Groups

From: Bill Zielenbach <bill@...>
Date: Fri, 13 Feb 2009 14:55:56 -0500
In my existing system of FutureBasic programs (originally developed in OS 9
and earlier), I make extensive use of the FOLDER function. I have to
dynamically determine if a given folder exists, and if not, create it; and
either way, get the "volrefnum" to enable me to create or access a file
therein. I've been able to run most of these programs successfully on OS X
after minor tweaking of the code that tests the results of the FOLDER
function.

I am always in a position to specify the full path name, for both the
folder/directory I need to create/access and the file name within that
directory, but I don't know how to dynamically test to see if the folder
already exists and if not, create it in a way that FBtoC will accept.

Can someone please point me in the right direction?