List contents of a directory on the board.
public System.Threading.Tasks.Task<AmpyWrapper.AmpyOutput> ListDirectory(string directory="/", bool longFormat=false, bool recursive=false);
directory System.String
directory
Path to the directory.
longFormat System.Boolean
longFormat
Print long format info including size of files. Note the size of directories is not supported and will show 0 values.
recursive System.Boolean
recursive
Recursively list all files and (empty) directories.
System.Threading.Tasks.Task<AmpyWrapper.AmpyOutput> A string of files and folders.
string rootPaths = await ListDirectory();
There was an error while loading. Please reload this page.