]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sftp.h
Fix major memory leak in sftp_cmd_ls (thanks to Hans-Juergen Petrich
[PuTTY.git] / sftp.h
diff --git a/sftp.h b/sftp.h
index 877b01e675ef9ff4f61581f26db7e7a1e93e50b7..8f671ad7eda37152c5a1fce6f431d49b9259ed51 100644 (file)
--- a/sftp.h
+++ b/sftp.h
@@ -121,6 +121,38 @@ struct fxp_handle *fxp_opendir(char *path);
  */
 void fxp_close(struct fxp_handle *handle);
 
+/*
+ * Make a directory.
+ */
+int fxp_mkdir(char *path);
+
+/*
+ * Remove a directory.
+ */
+int fxp_rmdir(char *path);
+
+/*
+ * Remove a file.
+ */
+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);
+int fxp_fsetstat(struct fxp_handle *handle, struct fxp_attrs attrs);
+
 /*
  * Read from a file.
  */
@@ -142,3 +174,9 @@ struct fxp_names *fxp_readdir(struct fxp_handle *handle);
  * Free up an fxp_names structure.
  */
 void fxp_free_names(struct fxp_names *names);
+
+/*
+ * Duplicate and free fxp_name structures.
+ */
+struct fxp_name *fxp_dup_name(struct fxp_name *name);
+void fxp_free_name(struct fxp_name *name);