Skip to content

Instantly share code, notes, and snippets.

@morygonzalez
Created April 5, 2011 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morygonzalez/903270 to your computer and use it in GitHub Desktop.
Save morygonzalez/903270 to your computer and use it in GitHub Desktop.
directory clean up (stub)
dir = Dir::entries(Dir::pwd)
dir.each do |d|
unless /^\./ =~ d
f = File::stat(d)
p [d, f.size, f.uid, f.gid, f.atime, f.mtime, f.ftype]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment