Enhance epmautomate uploadFile
Summary:
When using epmautomate uploadFile there is no way to handle an existing file. You have a few options at your disposal such as "listFiles" and "deleteFile". It would be nice for uploadFile to have a way to handle existing files with more flexibility.
Code Snippet (add any code snippets that support your topic, if applicable):
empautomate uploadFile "file.csv" inbox overwrite
The above would automatically overwrite and return a success with the message of overwrite. If there is no file to overwrite - it should still return success.
epmautomate uploadFile "file.csv" inbox rename "file-previous.csv"
The above would check for an existing file.csv and if it exists - automatically rename the existing uploaded file to the supplied name. It would then upload the file given in the first parameter.