|
Amiga Inc. Faq-O-Matic : Amiga Devices/FileSystems FAQ :
Is the implementation of POSIX stat broken (SDK 1.0)? It seems to give me the same value in st_mode for regular files and directories. Is there another function that can be used to distinguish between files and directories? |
Ok, try this:
file:/usr/doc/intent/lib/filetype/
While it does not stat the file, it is able to find the filetype based on contents. It also recognizes directories.
larsde |
I was of course mistaken.
stat works fine with the Amiga SDK.
http://www.redloop.com/larsde/stat_with_amiga_sdk.php
This code works perfectly.
Sorry for crying wolf.
LT.
larsde |
[Append to This Answer] |