ev3duder  0.3.0
EV3 Downloader/Uploader
ls.c File Reference

Lists files on brick. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "ev3_io.h"
#include "defs.h"
#include "packets.h"
#include "error.h"
#include "funcs.h"

Go to the source code of this file.

Macros

#define MAX_READ   1024
 List files and directories at path. path is always relative to /home/root/lms2012/prjs/sys/ More...
 

Functions

int ls (const char *path)
 list contents of remote directory rem More...
 

Detailed Description

Lists files on brick.

Author
Ahmad Fatoum

Definition in file ls.c.

Macro Definition Documentation

#define MAX_READ   1024

List files and directories at path. path is always relative to /home/root/lms2012/prjs/sys/

Parameters
[in]locLocal FILE*s
[in]remRemote EV3 UTF-8 encoded path strings
Return values
erroraccording to enum ERR
See also
http://topikachu.github.io/python-ev3/UIdesign.html
Warning
Doesn't handle replies over 1014 byte in length. implementation of CONTINUTE_LIST_FILES isn't tested because CONTINUE_LIST_FILES isn't implemented in "firmware".
ls /proc will lock up the virtual machine. So refrain from doing it or exposing it to the user The Eclipse Plugin handles /proc specially by making it non expandable in the file manager

Definition at line 35 of file ls.c.

Function Documentation

int ls ( const char *  path)

list contents of remote directory rem

Definition at line 36 of file ls.c.