Skip to content

Commit

Permalink
if not a directory then set file type with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Feb 2, 2024
1 parent 8ce9d16 commit 23e8405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wolfsftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4489,7 +4489,8 @@ 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;
atr->per |= (stats.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? 0x4000:
FILEATRB_PER_FILE;

#if 0
/* @TODO handle the constellation of possible Windows FILETIMEs */
Expand Down

0 comments on commit 23e8405

Please sign in to comment.