|
|
Currently supporteds command: 'list directory', 'copy', 'move', 'remove', 'replicate', 'create directory', 'remove directory', 'change mode'.
The actor accepts a reference to the SRB files system, and a desired command with its input ports. Outputs the command result along with an exit status.
COMMANDS DESCRIPTIONS:
List directory: Lists a remote directory content.
Inputs: path: [string]. Remote paths to list.
Output: listedFiles : [string]. Arrays of the contained files paths.
exitCode : string.
Option: outputEachFileSeparately. Whether to broadcast each file path sepearately or the whole list at once.
Copy/Move: Copys or moves files to a new path. Returns the new file paths. recursively copies/moves directories.
Inputs: path: [string]. Original remote file paths.
newPath: string. Location to copy/move.
Output: copiedFiles/movedFiles : [string]. Arrays of the new file paths.
Remove/Remove directory: Removes files/directories. Non-empty directories are recursively removed by remove r.
Inputs: path: [string]. Remote file paths.
Option: -r ; recursively removes files.
forward ; output an array of the removed files parent directory paths.
Create directory: Creates new directories. Returns the new directory path.
Inputs: path: [string]. New directories paths.
Output: dirPath: Created directories paths.
Replicate: Replicates a file/directory to a new resource.
Inputs: path: [string]. The files to be replicated.
newPath: [string]. The resource to replicate to.
Output: newResource: string. The files new resource.
Change mode: Changes the permissions of a file or a directory.
Inputs: path: [string]. Files paths.
permission: string
userName: string. To grant permission to.
mdasDomain: string. The metadata domain.
Output: exitPath: [string]. The files paths.
Author(s): Efrat Jaeger
Version:$Id: SProxy.java,v 1.21 2006/04/20 23:45:37 mangal Exp $
|
|