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.
Command Name | Description |
---|---|
rdir | renamedir | Renames a directory |
ddir | deletedir | Deletes a directory |
rmdir | removedir | Removes a directory |
mvdir | movedir | Moves a directory |
mkdir | makedir | To make or create a directory |
r | rename | Renames an existing file |
d | delete | Deletes a file |
m | move | Moves the location of a file |
e | exist | Verifies the existance of files |
See the following postprocessing 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_filenamenew_filename
Post_Action4: F,R,COMMAND,fusutil R
old_filenamenew_filename
Post_Action2: S,L,COMMAND,fusutil DDIR
directoryname
Post_Action3: S,L,COMMAND,fusutil MKDIR
directoryname
Post_Action3: S,L,COMMAND,fusutil RMDIR
directoryname
Post_Action4: S,R,COMMAND,fusutil MVDIR
directorynamenew_directoryname
Post_Action5: F,R,COMMAND,fusutil RDIR
old_directorynamenew_directoryname
- When processing the
EXIST
option, the code also checks if the file is available for use. On UNIX, this is not checked because there is no standardfile locking mechanism on UNIX. - The
ddir | deletedir
option deletes non-empty directory recursively, while thermdir | 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. |