Trove hackfest work with appropriate copyright notices and licence files added
[hurd/trovefs.git] / readdir.rb
1 #!/usr/bin/env ruby
2
3 # Copyright (C) 2013  Steven McDonald <steven@steven-mcdonald.id.au>
4 #
5 # This program is free software. It comes without any warranty, to the
6 # extent permitted by applicable law. You can redistribute it and/or
7 # modify it under the terms of the Do What The Fuck You Want To Public
8 # License, Version 2, as published by Sam Hocevar. See the file
9 # COPYING.WTFPL accompanying this distribution or http://www.wtfpl.net/
10 # for more details.
11
12 d = Dir.new("/home/steven/trovefs/foo")
13 i = nil
14 puts i while i = d.read