I'm working on uploading a file to a server via SFTP. The given put method of the SFTP client expects as first argument the relative or absolute local path of the file I want to upload and as second argument the remote path where the file should be uploaded:
localFilePath = 'C:/Users/user/Output.csv'
remoteFilePath = '/remote/Output.csv'
sftp.put(localFilePath, remoteFilePath)
How is it possible to customize the naming of the file in the remoteFilePath
by adding the actual datetime so it should look like this : Output_2021-12-20T16:27:28Z.csv
?