At 5:47 PM +0200 4/2/04, you wrote:
Hi list,

I have a very simple utility-function which uses fileIO Xtra to find out
if a file exists (just for cases where Buddy API or FileXtra are not
available):

on fileExists fn
  fio=new(xtra "fileIO")
  fio.openFile(fn,1)
  err=fio.status()
  fio.closeFile()
  fio=void
  if err=0 then
    return 1
  else
    return 0
  end if
end

Now I found out that this function always returns true if a file with
the same filename as the filename in parameter fn (which is a full path)
exists in the moviepath, i.e. if fn doesn't exist, but a file with the
same name exists in the same folder as the *.dir, fileIO takes this one
instead for openFile, writeString etc. (dir mx, win xp pro). Does anyone
know a way to make fileIO stop behaving like that?

Thanks,
valentin

If you can't verify the path-filename of what was opened then you could try this workaround:


Open up the false file first (the one next to the DIR).

This will either fail (not there) or will set your desired routine up for failure (because the false file has already been opened).

hth
-Buzz


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to