summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32/ngx_stat.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/os/win32/ngx_stat.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/os/win32/ngx_stat.c b/src/os/win32/ngx_stat.c
index 5b1af3014..5c844b14f 100644
--- a/src/os/win32/ngx_stat.c
+++ b/src/os/win32/ngx_stat.c
@@ -3,6 +3,18 @@
#include <ngx_stat.h>
+int ngx_file_type(char *file, ngx_file_info_t *sb)
+{
+ sb->dwFileAttributes = GetFileAttributes(file);
+
+ if (sb->dwFileAttributes == INVALID_FILE_ATTRIBUTES) {
+ return -1;
+ }
+
+ return 0;
+}
+
+/*
int ngx_stat(char *file, ngx_stat_t *sb)
{
*sb = GetFileAttributes(file);
@@ -13,3 +25,4 @@ int ngx_stat(char *file, ngx_stat_t *sb)
return 0;
}
+*/