Support

Issues with file operations using Event Manager.

Dana Anderson -

Some FTP clients upload a temporary file ending in .filepart, renaming it to the target name only once the transfer successfully finishes.

By adding .filepart when the upload completes, Cerberus is getting a file upload notification complete event that is triggering your rule. At around the same time, the client is renaming the file to the correct file name.

Sometimes the file name still exists but the client has opened the file for renaming (this is when you get the file is in-use message). Other times the event kicks off right after the file gets renamed by the client. You get an error that the file doesn't existing in this case.

The best way to resolve this issue is to add a condition to your File Upload Event rule that ignores files with the string .filepart.  For example, you could add a condition that the file does not contain .filepart. Anything else will trigger your move.

From there you can then handle the rename with a File Move/Copy event where the FROM filename ends with .filepart.  In that case, you know it's the rename after an upload and you can move the file as part of the action for that event.

Learn move about configuring the Event Manager here

 

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk