\i S G string::filename
| Parameter | Type | Range | Description |
|---|---|---|---|
| filename | file | DOS filename (8.3 format) | name and path of the file |
Returns the status information of the file filename.
Note
| Response: | [ACK] status [ACK] |
| Bytes | Description |
|---|---|
| 0 ... 3 | file size in bytes |
| 4 | file attributes (refer to table below) |
| 5 ... 7 | modification date (see Get Date, no weekday) |
| 8 ... 10 | modification time (see Get Time) |
| 11 ... 22 | DOS filename (8.3 format) filled up with 0 |
| Bit | Description |
|---|---|
| 0 | write protected |
| 1 | hidden |
| 2 | system file |
| 4 | directory |
| 5 | archive |
Example
\iSG/DIR/IMG00000.RII\0
This will read the status of "IMG00000.RII", which is located in "DIR" which in turn is located in the root of the SD-Card.
Response Example
[ACK]
[00][00][96][CC]
[20]
[0C][07][0C]
[0C][24][0E]
IMG00000.RII
[ACK]
The requested file has a size of 38.604 bytes, has the archive attribute set, the modification date is July 12th, 2012 at 12:36:14 and the filename is IMG00000.RII.
Not supported by: DPC3050, DPC3020, DPC2060, DPC10xx
See also:
MicroSD Card Related Commands
Open Directory and Read First Entry
Read Next Entry
Open File
Copyright © demmel products gmbh. All rights reserved.