| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "sflfile.h" Bool file_is_directory ( const char *filename)
Returns TRUE if the specified file is a directory. The filename may end in a slash (/ or \). Under MS-DOS/OS2/Windows, a directory name may consist solely of a disk-drive specifier. Under VMS the directory may optionally take the extension '.dir'.
{ ASSERT (filename); strcpy (work_name, clean path (filename)); #if (defined (__VMS__)) if (!file exists (work_name)) default extension (work_name, work_name, "dir"); #endif return ((file_mode (work_name) & S_IFDIR) != 0); }
| << | < | > | >> |
![]() |