I am a newbie with command line and PSFTP command line upload, I am used to FileZilla but at the moment, I am uploading some files with extension (.js
, .php
, .txt
) to my remote server via PSFTP command line.
I've found out that PSFTP automatically overwrites the file without asking anything.
Now my question is: just like the @Override
command in Java where the compiler gives you an error if the method you are trying to override isn't in the super class, is there a key word for this too in PSFTP, because I wanted overrides the file and if it doesn't exist, I want to cancel the upload.