DIR

From Calimacil
Jump to: navigation, search

Description

Briefly lists the directory contents of the SD Card on the Calimotion board. By default, it will return the list of all files using the format [YYYY-MM-DD HH:MM:SS] [filename] [size in bytes].

Syntax

dir [parameters]

Parameters

*.* You can use wildcards to display a list of a subset of files.
[FileName] Specifies a particular file or group of files for which you want to see a listing.

Examples

Simple Dir

dir 1980/00/00 00:00 SETUP.BIN 17 bytes 1980/00/00 00:00 MOTION.MAP 256 bytes 1980/00/00 00:00 HIT.MOD 768 bytes 1980/00/00 00:00 FIRMWARE.BIN 212992 bytes 1980/00/00 00:00 BOOT.BIN 12 bytes 1980/00/00 00:00 SWING.WAV 25984 bytes 1980/00/00 00:00 LOCK.WAV 46080 bytes 1980/00/00 00:00 HIT.WAV 3328 bytes 1980/00/00 00:00 OPEN.LUX 8704 bytes 1980/00/00 00:00 HUM.WAV 16256 bytes 1980/00/00 00:00 OPEN.WAV 47360 bytes 1980/00/00 00:00 CLOSE.WAV 7296 bytes 1980/00/00 00:00 SAVE.WAV 4480 bytes 1980/00/00 00:00 1_OPEN.LUX 12288 bytes 1980/00/00 00:00 1_HUM.LUX 28800 bytes 1980/00/00 00:00 1_CLOSE.LUX 36864 bytes 1980/00/00 00:00 1_HIT.LUX 4736 bytes

Wildcards List

If you want to list only the *.wav files on the SD card.

dir *.wav 1980/00/00 00:00 SWING.WAV 25984 bytes 1980/00/00 00:00 LOCK.WAV 46080 bytes 1980/00/00 00:00 HIT.WAV 3328 bytes 1980/00/00 00:00 OPEN.LUX 8704 bytes 1980/00/00 00:00 HUM.WAV 16256 bytes 1980/00/00 00:00 OPEN.WAV 47360 bytes 1980/00/00 00:00 CLOSE.WAV 7296 bytes 1980/00/00 00:00 SAVE.WAV 4480 bytes