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