next up previous contents
Next: Logging Up: File Transfer Commands Previous: list   Contents

Command Line Tool

usage: edg-replica-manager list directory
List the directory contents on an SRM or a GridFTP server.

 Arguments:
  directory             The directory to list. This is a URI with either
                        'srm' or 'gsiftp' scheme, followed by the SE host,
                        and a proper path

List all the files in a specific directory, or check the existence of a file by listing it.

Semantics

The command uses the GridFTP list function and thus can be used for two things: first, for listing all files in a given directory and second for checking if a file exists. In the first case, all filenames are returned. In the second case, the filename including the path on the SE is return.

Arguments

directory
The directory or filename to be listed or checked.

Options

none.

Return value The call returns 0 on success and -1 on failure. If the directory of file is not found, in addition a ? is printed to the screen.

Errors

The call can fail for many reasons. Some of the reasons are:


next up previous contents
Next: Logging Up: File Transfer Commands Previous: list   Contents
2004-06-14