Command: list-file

Purpose:

This command allows you to list the drives on the user’s system and the content of those drives and directory content.
To list all the drives, the ‘path’ parameter must equal “+/*” (without the quotes).

Format:

list-file <path>

Response:

Returns a InfoRequestCommandResponse<T> object.
The type of the T type is as shown below:

public class HostFileInfo implements Serializable {
	private static final long serialVersionUID = 3760374966104566096L;
	
	private String name;
	private String path;
	private boolean file;
	private boolean directory;
	private boolean hidden;
	private boolean canRead;
	private boolean canWrite;
	private long lastModifiedDate;
	private long size;
	private int type;
}

The value of type will be:
-1 = NOT_APPLICABLE
0 = DRIVE_UNKNOWN
1 = DRIVE_NO_ROOT_DIR
2 = DRIVE_REMOVABLE
3 = DRIVE_FIXED
4 = DRIVE_REMOTE
5 = DRIVE_CDROM
6 = DRIVE_RAMDISK
7 = DRIVE_UNC
8 = DRIVE_ERROR
Be Sociable, Share!

Revisions

No comments yet.

Leave a Reply

six + 19 =