xref: /aosp_15_r20/external/curl/docs/cmdline-opts/ftp-create-dirs.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: ftp-create-dirs
5*6236dae4SAndroid Build Coastguard WorkerProtocols: FTP SFTP
6*6236dae4SAndroid Build Coastguard WorkerHelp: Create the remote dirs if not present
7*6236dae4SAndroid Build Coastguard WorkerCategory: ftp sftp
8*6236dae4SAndroid Build Coastguard WorkerAdded: 7.10.7
9*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - create-dirs
12*6236dae4SAndroid Build Coastguard WorkerExample:
13*6236dae4SAndroid Build Coastguard Worker  - --ftp-create-dirs -T file ftp://example.com/remote/path/file
14*6236dae4SAndroid Build Coastguard Worker---
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# `--ftp-create-dirs`
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard WorkerWhen an FTP or SFTP URL/operation uses a path that does not currently exist on
19*6236dae4SAndroid Build Coastguard Workerthe server, the standard behavior of curl is to fail. Using this option, curl
20*6236dae4SAndroid Build Coastguard Workerinstead attempts to create missing directories.
21