|
1 | 1 | # This file is part of ssh2-python. |
2 | | -# Copyright (C) 2017 Panos Kittenis |
3 | | - |
| 2 | +# Copyright (C) 2017-2020 Panos Kittenis |
| 3 | +# |
4 | 4 | # This library is free software; you can redistribute it and/or |
5 | 5 | # modify it under the terms of the GNU Lesser General Public |
6 | 6 | # License as published by the Free Software Foundation, version 2.1. |
7 | | - |
| 7 | +# |
8 | 8 | # This library is distributed in the hope that it will be useful, |
9 | 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 | 11 | # Lesser General Public License for more details. |
12 | | - |
| 12 | +# |
13 | 13 | # You should have received a copy of the GNU Lesser General Public |
14 | 14 | # License along with this library; if not, write to the Free Software |
15 | 15 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
@@ -79,6 +79,13 @@ cdef extern from "libssh2_sftp.h" nogil: |
79 | 79 | LIBSSH2_SFTP_S_IROTH # R for other |
80 | 80 | LIBSSH2_SFTP_S_IWOTH # W for other |
81 | 81 | LIBSSH2_SFTP_S_IXOTH # X for other |
| 82 | + # SFTP attributes |
| 83 | + enum: |
| 84 | + LIBSSH2_SFTP_ATTR_SIZE |
| 85 | + LIBSSH2_SFTP_ATTR_UIDGID |
| 86 | + LIBSSH2_SFTP_ATTR_PERMISSIONS |
| 87 | + LIBSSH2_SFTP_ATTR_ACMODTIME |
| 88 | + LIBSSH2_SFTP_ATTR_EXTENDED |
82 | 89 | int LIBSSH2_SFTP_S_ISLNK(unsigned long m) |
83 | 90 | int LIBSSH2_SFTP_S_ISREG(unsigned long m) |
84 | 91 | int LIBSSH2_SFTP_S_ISDIR(unsigned long m) |
|
0 commit comments