On Jun 23, 2006, at 2:17 PM, mrebar darkwing wrote:
On 6/23/06 4:56 AM, "Tehenne" <[EMAIL PROTECTED]> wrote:
Hello
I work on Mac (OS X) with a database created on a PC (Windows).
In this database, there is an absoluPath of a file :
path="C:\Documents and Settings\Bibi\Bureau\Requis\Medias
\monChien.jpg
When I try (on Mac) :
if getFolderItem(path)<>nil and getFolderItem(path).exists then
msgbox "OK"
else
msgbox "NO"
end
I have the answer "OK".
How to resolve this problem (bug) ?
Regards,
--
Tehenne Saint-Denis de la Réunion
If I recall correctly, the last time this was discussed, the
prevailing
opinion was that this is *not* a bug.
GetFolderItem(path) does not attempt to parse " C:\Documents and
Settings\Bibi\Bureau\Requis\Medias\monChien.jpg" as an absolute path.
It attempts to interpret "C:\Documents and
Settings\Bibi\Bureau\Requis\Medias\monChien.jpg" as the name of a
document.
You may add the optional pathMode parameter.
While path contains an invalid character, it still returns a valid
folderItem.
Well ... try this on OS X
dim f as folderItem
f = getFolderItem(path,FolderItem.pathTypeAbsolute)
This returns a non nil folderitem that supposedly exists but it is
NOT the item that path points at and does NOT throw an unsupported
format exception (any of which I'd say it pretty reasonable on OS X)
I'd say that's a bug especially if the next thing you try is
if f <> nil and f.exists then f.delete
In the debugger you'll likely have just tried to delete REALbasic itself
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>