aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_stat.c
blob: 5b1af301481e69b5512917969cd0b4d28867cc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <windows.h>

#include <ngx_stat.h>

int ngx_stat(char *file, ngx_stat_t *sb)
{
    *sb = GetFileAttributes(file);

    if (*sb == INVALID_FILE_ATTRIBUTES) {
        return -1;
    }

    return 0;
}