add directory attribute to Windows build

pull/244/head
Jacob Barthelmeh 2020-02-20 14:34:52 -07:00
parent 552b763e4f
commit 9aeabb5068
1 changed files with 1 additions and 0 deletions

View File

@ -3758,6 +3758,7 @@ int SFTP_GetAttributes(void* fs, const char* fileName, WS_SFTP_FILEATRB* atr,
atr->flags |= WOLFSSH_FILEATRB_PERM;
atr->per = 0555 |
(stats.dwFileAttributes | FILE_ATTRIBUTE_READONLY ? 0 : 0200);
atr->per |= (stats.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? 0x4000:0;
#if 0
/* @TODO handle the constellation of possible Windows FILETIMEs */