| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

file_is_directory

#include "sflfile.h"
Bool
file_is_directory (
    const char *filename)

Synopsis

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'.

Source Code - (sflfile.c)

{
    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);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix