Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP question

Status
Not open for further replies.

eyetry

Programmer
Oct 2, 2002
560
US
Not sure if this is the correct forum but I have an FTP question.

Is there a way to create an empty file on an FTP server without actually having an empty file to 'put' to the server?

ie.... not the following...

put empty_file_to_put.txt dest_path/empty_file.txt

more like....

create dest_path/new_file.txt

 
Hi eyetry,

I was a big unsure myself if this was possible, however I've checked the RAW FTP commands list and the only option is the STOR command:

STOR
Syntax: STOR remote-filename
Begins transmission of a file to the remote site. Must be preceded by either a PORT command or a PASV command so the server knows where to accept data from.

You can get a more detailed list of FTP RAW commands at: but none seem to 'create' a file on there without uploading one.

Brendan Murtagh - HostMySite.com
Technical Support Representative
bmurtagh@hostmysite.com
 
Hmm, sort of like the *nix 'touch' command. (Be careful if you google for the man page). It's not an ftp function, but if you have shell access on a linux server you could just 'touch' the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top