1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

More upgrades to psftp: it now supports mv, chmod, reget and reput.

[originally from svn r1203]
This commit is contained in:
Simon Tatham
2001-08-26 11:35:11 +00:00
parent 116fb80175
commit 9c5951ed35
5 changed files with 475 additions and 36 deletions

24
sftp.h
View File

@ -122,19 +122,35 @@ struct fxp_handle *fxp_opendir(char *path);
void fxp_close(struct fxp_handle *handle);
/*
* Makes a directory
* Make a directory.
*/
int fxp_mkdir(char *path);
/*
* Removes a directory
* Remove a directory.
*/
int fxp_rmdir(char *path);
/*
* Removes a file
* Remove a file.
*/
int fxp_rm(char *fname);
int fxp_remove(char *fname);
/*
* Rename a file.
*/
int fxp_rename(char *srcfname, char *dstfname);
/*
* Return file attributes.
*/
int fxp_stat(char *fname, struct fxp_attrs *attrs);
int fxp_fstat(struct fxp_handle *handle, struct fxp_attrs *attrs);
/*
* Set file attributes.
*/
int fxp_setstat(char *fname, struct fxp_attrs attrs);
/*
* Read from a file.