quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

quote.md (3170B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: quote
      5 Arg: <command>
      6 Short: Q
      7 Help: Send command(s) to server before transfer
      8 Protocols: FTP SFTP
      9 Category: ftp sftp
     10 Added: 5.3
     11 Multi: append
     12 See-also:
     13   - request
     14 Example:
     15   - --quote "DELE file" ftp://example.com/foo
     16 ---
     17 
     18 # `--quote`
     19 
     20 Send an arbitrary command to the remote FTP or SFTP server. Quote commands are
     21 sent BEFORE the transfer takes place (just after the initial **PWD** command
     22 in an FTP transfer, to be exact). To make commands take place after a
     23 successful transfer, prefix them with a dash '-'.
     24 
     25 (FTP only) To make commands be sent after curl has changed the working
     26 directory, just before the file transfer command(s), prefix the command with a
     27 '+'.
     28 
     29 You may specify any number of commands.
     30 
     31 By default curl stops at first failure. To make curl continue even if the
     32 command fails, prefix the command with an asterisk (*). Otherwise, if the
     33 server returns failure for one of the commands, the entire operation is
     34 aborted.
     35 
     36 You must send syntactically correct FTP commands as RFC 959 defines to FTP
     37 servers, or one of the commands listed below to SFTP servers.
     38 
     39 SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands
     40 itself before sending them to the server. Filenames may be quoted shell-style
     41 to embed spaces or special characters. Following is the list of all supported
     42 SFTP quote commands:
     43 
     44 ## atime date file
     45 The atime command sets the last access time of the file named by the file
     46 operand. The date expression can be all sorts of date strings, see the
     47 *curl_getdate(3)* man page for date expression details. (Added in 7.73.0)
     48 
     49 ## chgrp group file
     50 The chgrp command sets the group ID of the file named by the file operand to
     51 the group ID specified by the group operand. The group operand is a decimal
     52 integer group ID.
     53 
     54 ## chmod mode file
     55 The chmod command modifies the file mode bits of the specified file. The
     56 mode operand is an octal integer mode number.
     57 
     58 ## chown user file
     59 The chown command sets the owner of the file named by the file operand to the
     60 user ID specified by the user operand. The user operand is a decimal
     61 integer user ID.
     62 
     63 ## ln source_file target_file
     64 The ln and symlink commands create a symbolic link at the target_file location
     65 pointing to the source_file location.
     66 
     67 ## mkdir directory_name
     68 The mkdir command creates the directory named by the directory_name operand.
     69 
     70 ## mtime date file
     71 The mtime command sets the last modification time of the file named by the
     72 file operand. The date expression can be all sorts of date strings, see the
     73 *curl_getdate(3)* man page for date expression details. (Added in 7.73.0)
     74 
     75 ## pwd
     76 The pwd command returns the absolute path name of the current working directory.
     77 
     78 ## rename source target
     79 The rename command renames the file or directory named by the source
     80 operand to the destination path named by the target operand.
     81 
     82 ## rm file
     83 The rm command removes the file specified by the file operand.
     84 
     85 ## rmdir directory
     86 The rmdir command removes the directory entry specified by the directory
     87 operand, provided it is empty.
     88 
     89 ## symlink source_file target_file
     90 See ln.