Permalink
Browse files

correct bug in a example code

  • Loading branch information...
1 parent a3cbe60 commit db8b9996416c73f49d2d9b01cafb508174b650be @lazybean lazybean committed Dec 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 fileio-api/README.md
View
2 fileio-api/README.md
@@ -216,7 +216,7 @@ filesystem. The method `refresh()` is used for this purpose:
<pre><code>dir.refresh(); //Load the contents of the directory
for ( var i = 0, file; file = dir[i]; i++ )
{
- opera.postError(file.path + ' ' + file.isDirectory + ' ' file.isFile);
+ opera.postError(file.path + ' ' + file.isDirectory + ' ' + file.isFile);
}</code></pre>
When the file is a directory, its `length` property will tell you how many files and subdirectories there are in the directory.

0 comments on commit db8b999

Please sign in to comment.