My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: dynawa.file.dir_stat()
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  nali...@gmail.com
Closed:  Feb 2010
Cc:  nali...@gmail.com


 
Project Member Reported by fuka2@fuxoft.cz, Jan 31, 2010
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
(No comment was entered for this change.)
Owner: nalim68
Feb 4, 2010
Project Member #2 nali...@gmail.com
implemented
Status: Fixed
Feb 14, 2010
Project Member #3 fuka2@fuxoft.cz
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
Project Member #4 fuka2@fuxoft.cz
This is caused by the trailing slash character. dir_stat("/_SYS") works correctly, 
dir_stat("/_SYS/") should too.
Feb 15, 2010
Project Member #5 nali...@gmail.com
fixed
Status: Fixed

Powered by Google Project Hosting