12.07.2015 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

List DirectoryDescriptionThe List Directory command will list all the files in a given path. If the path is a file, then onlythe details for that file are given. If the path contains wildcards, then the files matching thepattern will be returned.List Directory (L path) lists all files that match path without interruption. If a directory is large,this can be difficult to manage. In that ca<strong>se</strong>, u<strong>se</strong> LS path to begin a directory listing iterationprocess, then u<strong>se</strong> LI pattern to iterate through the listings.FormatL pathLC pathLS pathLI patternParameters• path is the absolute path to a file/directory. A properly formatted path must begin with a ”/”(forward slash) and begins at the root directory. Subdirectories are <strong>se</strong>parated with ”/”(forward slash).o e.g. /logs/january/jan3.log• pattern - a filename pattern which can contain wildcards (”?” and ”*”).— —LC path returns the count of files that match the path.LS path starts a List Directory iteration process.LI pattern iterates through a directory listing, returning the next file thatmatches pattern. pattern is required (just u<strong>se</strong> ”*” to match everything).For L path and LC path, path can also contain wildcards (”?” and ”*”).In LS path, path can not contain wildcards, and must point to a directory.Respon<strong>se</strong> FormatBart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!