| View previous topic :: View next topic |
| Author |
Message |
MagicianFB
Joined: 10 Oct 2005 Posts: 11
|
Posted: Mon Oct 10, 2005 8:54 am Post subject: System.listDirectory() |
|
|
Does any one know how this works?
When I do this:
| Code: | listdir = System.listDirectory()
table.foreach(listdir, print) |
All the values are some thing like this:
|
|
| Back to top |
|
 |
MagicianFB
Joined: 10 Oct 2005 Posts: 11
|
Posted: Mon Oct 10, 2005 9:08 am Post subject: |
|
|
Nevermind, ignore the above.
Now I need to know how come every indice of listdir is an empty table. |
|
| Back to top |
|
 |
flattspott
Joined: 22 Aug 2005 Posts: 22
|
Posted: Mon Oct 10, 2005 10:51 am Post subject: |
|
|
maybe it should be something like so..
System.listDirectory( path ) |
|
| Back to top |
|
 |
MagicianFB
Joined: 10 Oct 2005 Posts: 11
|
Posted: Mon Oct 10, 2005 11:15 am Post subject: |
|
|
| flattspott wrote: | maybe it should be something like so..
System.listDirectory( path ) |
I think if you don't have the path it just does the current directory. |
|
| Back to top |
|
 |
|