ListFileStatus

The ListFileStatus activity is used to list the status of the specified file or directory.

Regarding the specified directory, the activity returns the status of all files and directories in the specified directory.

General

The General tab has the following fields.

Field Module Property? Description
Name No The name of the activity in the process definition.
HDFS Connection Yes Click to select an HDFS Connection shared resource.

If no matching HDFS Connection shared resources are found, click Create Shared Resource to create one.

Description

Provide a short description for the activity.

Input

The input of the activity are as follows.

Input Item Data Type Description
path string Specifies the path of a file or a directory.
Note: If you specify an empty folder in this field, the Output tab will empty.

Output

The output of the activity are as follows.

Output Item Data Type Description
fileinfo
accessTime long Returns the access time of the file in milliseconds.
blockSize long Returns the block size of the file.
length long Returns the number of bytes in a file.
modificationTime long Returns the modification time of the file in milliseconds.
replication long Returns the number of replications of the file.
owner string Returns the user name of the file owner.
type string Returns the type of the path object, FILE or DIRECTORY.
group string Returns the group associated with the file.
permission string Returns the permission of the file.
pathSuffix string Returns the path suffix of the file.

Fault

The Fault tab lists the exceptions that can be thrown by this activity.

HDFSException Description
msg The error message description returned by the plug-in.
msgCode The error code returned by the plug-in.
exception Occurs when the plug-in has internal errors.
message The error message returned by the server.
javaClassName The name of the Java Class where an error occurred.