summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.h
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-01-27 02:54:12 +0000
committerSara Golemon <pollita@php.net>2003-01-27 02:54:12 +0000
commit761fa96412960d942e8767df7a3874f84371db34 (patch)
tree68ae95d92bd9e9d2fe8e8313ab22cdac0da30652 /ext/ftp/ftp.h
parente9833ff497d2d8c47e426edaffda4f12cd3c8797 (diff)
downloadphp-git-761fa96412960d942e8767df7a3874f84371db34.tar.gz
Feature Request #21748. Added function ftp_chmod().
Diffstat (limited to 'ext/ftp/ftp.h')
-rw-r--r--ext/ftp/ftp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ftp/ftp.h b/ext/ftp/ftp.h
index dd6be94c8b..35bf12bffb 100644
--- a/ext/ftp/ftp.h
+++ b/ext/ftp/ftp.h
@@ -135,6 +135,9 @@ char* ftp_mkdir(ftpbuf_t *ftp, const char *dir);
/* removes a directory, return true on success, false on error */
int ftp_rmdir(ftpbuf_t *ftp, const char *dir);
+/* Set permissions on a file */
+int ftp_chmod(ftpbuf_t *ftp, const int mode, const char *filename);
+
/* returns a NULL-terminated array of filenames in the given path
* or NULL on error. the return array must be freed (but don't
* free the array elements)