| Issue 5: | dynawa.file.dir_stat() | |
| 1 person starred this issue and may be notified of changes. | Back to list |
dynawa.file.dir_stat(fname) - Returns info about files in the SD card
directory. "fname" is full pathname.
If fname does not exist or is not directory, raises error.
If succesfull, returns a table where keys are filenames (strings) and values
are file sizes (non-negative integers) or "dir" (string) for subdirectories.
For example, dynawa.file.dir_stat("/_sys/") could return the following
table:
{["boot.lua"] = 5678, ["wristos.lua"] = 23456, ["apps"] = "dir"}
Jan 31, 2010
Project Member
#1
fuka2@fuxoft.cz
Owner:
nalim68
Feb 4, 2010
implemented
Status:
Fixed
Feb 14, 2010
When doing dir_stat("/") and then dir_stat("/_SYS/"), the second command throws the
following error:
f_opendir 6 DENIED
Status:
New
Cc: nalim68 Labels: -Priority-Low Priority-Medium
Feb 15, 2010
This is caused by the trailing slash character. dir_stat("/_SYS") works correctly,
dir_stat("/_SYS/") should too.
Feb 15, 2010
fixed
Status:
Fixed
|