Skip to content

AmpyWrapper.Ampy.ListDirectory(string,bool,bool)

Finnomator edited this page Aug 3, 2023 · 2 revisions

Ampy.ListDirectory(string, bool, bool) Method

List contents of a directory on the board.

public System.Threading.Tasks.Task<AmpyWrapper.AmpyOutput> ListDirectory(string directory="/", bool longFormat=false, bool recursive=false);

Parameters

directory System.String

Path to the directory.

longFormat System.Boolean

Print long format info including size of files. Note the size of directories is not supported and will show 0 values.

recursive System.Boolean

Recursively list all files and (empty) directories.

Returns

System.Threading.Tasks.Task<AmpyWrapper.AmpyOutput>
A string of files and folders.

Example

string rootPaths = await ListDirectory();  

Clone this wiki locally