2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
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
|
|
|
|
Category: ftp sftp curl
|
|
|
|
Added: 7.10.7
|
|
|
|
Multi: boolean
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- create-dirs
|
|
|
|
Example:
|
|
|
|
- --ftp-create-dirs -T file ftp://example.com/remote/path/file
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--ftp-create-dirs`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
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.
|