fusutil Utility

When a file transfer is completed, you can use the fusutil utility to perform post processing actions, such as renaming, moving, or deleting a file.

Different operating systems support different commands. The fusutil utility provides a common interface to rename, move, or delete a file or directory, and to verify if a file or directory exists in a remote system. You can use the fusutil command as a post processing action running command.

The rdir | renamedir, ddir | deletedir, rmdir | removedir,mvdir | movedir options are used to rename, delete, and move directories, while the r|rename, d|delete, m|move and e|exist options are used to rename, delete, move, and verify the existence of files.

Note:
  • The maximum length of the fusutil command is 1024 characters.

See the following post processing command examples using each of the fusutil utility options:

Post_Action1: S,R,COMMAND,fusutil E filename

Post_Action2: S,L,COMMAND,fusutil D filename

Post_Action3: S,R,COMMAND,fusutil M old_filename new_filename

Post_Action4: F,R,COMMAND,fusutil R old_filename new_filename

Post_Action2: S,L,COMMAND,fusutil DDIR directoryname

Post_Action3: S,L,COMMAND,fusutil RMDIR directoryname

Post_Action4: S,R,COMMAND,fusutil MVDIR directoryname new_directoryname

Post_Action5: F,R,COMMAND,fusutil RDIR old_directoryname new_directoryname

Note:
  • When processing the EXIST option, the code also checks if the file is available for use. This can be completed on all platforms except UNIX, because there is no standard call to accomplish this on UNIX.
  • When using the RENAME or DELETE option on UNIX in a directory to which you have write access, it is possible to remove or rename a file that does not belong to you. This is a function of how UNIX security works.
  • The ddir | deletedir option deletes non-empty directory recursively, while the rmdir | removedir option removes an empty directory only.
The results of the used commands are returned in codes. See the following table for the meanings of return codes:
Return Code Description
0 Success.
4 General network errors and the command will be retried.
8 Severe error. The command will not be retried.
Any other return code Check the return code message for more information.