8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e6527 commit 8067637Copy full SHA for 8067637
client.go
@@ -167,6 +167,10 @@ type Client struct {
167
// already exists. If successful, methods on the returned File can be used for
168
// I/O; the associated file descriptor has mode O_RDWR. If you need more
169
// control over the flags/mode used to open the file see client.OpenFile.
170
+//
171
+// Note that some SFTP servers (eg. AWS Transfer) do not support opening files
172
+// read/write at the same time. For those services you will need to use
173
+// `client.OpenFile(os.O_WRONLY|os.O_CREATE|os.O_TRUNC)`.
174
func (c *Client) Create(path string) (*File, error) {
175
return c.open(path, flags(os.O_RDWR|os.O_CREATE|os.O_TRUNC))
176
}
0 commit comments