The commands are interpreted by an SFTP client, so it depends on the client, not a server (contrary to the answer by @KyleBrandt).
With the OpenSSH sftp
(the most widespread one), lines starting with the #
are indeed ignored.
# Download text files get *.txt
It does not seem to be documented in the sftp
man page, but it follows (documented) convention from OpenSSH configuration files such as sshd_config
:
Lines starting with `#' and empty lines are interpreted as comments.