Le 20/06/2023 à 18:51, Marc Rauzier a écrit :
Using name format 0, I found that the member should already exist in
the file when using a put. If the file does not exist, it is created
as a data file (not a source file) with put ftp subcommand.
Correction, no need for the member to already exist:
ftp> quote rcmd crtsrcpf test
250 Command crtsrcpf test successful.
ftp> put free.txt TEST.TEST
200 PORT subcommand request successful.
150 Sending file to member TEST in file TEST in library DIMARCOB.
226 File transfer completed successfully.
ftp : 6 octets envoyés en 0.25 secondes à 0.02 Ko/s.
ftp> dir
200 PORT subcommand request successful.
125 List started.
drwx------ 1 DIMARCO 0 32768 Jun 20 17:01 TEST
-rwx------ 1 DIMARCO 0 82 Jun 20 17:01 TEST.TEST
250 List completed.
ftp : 128 octets reçus en 0.04 secondes à 3.56 Ko/s.
ftp> put free.txt TEST.OTHERTEST
200 PORT subcommand request successful.
150 Sending file to member OTHERTEST in file TEST in library DIMARCOB.
226 File transfer completed successfully.
ftp : 6 octets envoyés en 0.25 secondes à 0.02 Ko/s.
ftp> dir
200 PORT subcommand request successful.
125 List started.
drwx------ 1 DIMARCO 0 49152 Jun 20 17:01 TEST
-rwx------ 1 DIMARCO 0 82 Jun 20 17:01 TEST.OTHERTEST
-rwx------ 1 DIMARCO 0 82 Jun 20 17:01 TEST.TEST
250 List completed.
ftp : 198 octets reçus en 0.04 secondes à 5.50 Ko/s.
ftp>
As an Amazon Associate we earn from qualifying purchases.