Sftp: before a file is being saved on teh remote machine, ensure that the path to it exists (create it if it does not exist)