aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/ftp-create-dirs.d
blob: 7c64f0e21c9c39078ff0774a25ea78f7036b89e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: ftp-create-dirs
Protocols: FTP SFTP
Help: Create the remote dirs if not present
See-also: create-dirs
Category: ftp sftp curl
Example: --ftp-create-dirs -T file ftp://example.com/remote/path/file
Added: 7.10.7
Multi: boolean
---
When an FTP or SFTP URL/operation uses a path that does not currently exist on
the server, the standard behavior of curl is to fail. Using this option, curl
instead attempts to create missing directories.