Skip to content

Instantly share code, notes, and snippets.

@sugamasao
Created November 16, 2010 23:00
Show Gist options
  • Save sugamasao/702692 to your computer and use it in GitHub Desktop.
Save sugamasao/702692 to your computer and use it in GitHub Desktop.
.txt のファイル一覧を取得する
Pathname.glob("/tmp/**/*").select {|path| path.to_s =~ /\.txt\z/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment