Skip to content

Commit

Permalink
add a naive get_iter vtable to FileSystem.Directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Sep 27, 2011
1 parent 5c08cfb commit bf09983
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/filesystem/Directory.winxed
Expand Up @@ -148,6 +148,15 @@ namespace Rosella { namespace FileSystem
os.rm(name);
}

function get_iter[vtable]()
{
// TODO: This is naive. We need an iterator which is more lazy
var entries = self.__get_entries(1, 1);
var e_iter;
${ iter e_iter, entries };
return e_iter;
}

/* Private Helper Methods
*/

Expand Down

0 comments on commit bf09983

Please sign in to comment.