mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #244 from JacobBarthelmeh/sftp
add directory attribute to Windows buildpull/248/head
commit
abf126206a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue