Amiga!
Home
Support
Get the SDK
(Answer) (Category) Amiga Inc. Faq-O-Matic : (Category) 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]
Previous: (Answer) Can a Device Driver be used "backwards" ?
Next: (Answer) Directory Structure
This document is: http://www.amiga.com/cgi-bin/fom.cgi?file=175
[Search] [Appearance]
This is a Faq-O-Matic 2.710.
This FAQ administered by ray@amiga.com


© 1996-2000 Amiga, Inc.