Skip to content

Instantly share code, notes, and snippets.

@satoshin2071
Created April 11, 2014 10:31
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 satoshin2071/10456739 to your computer and use it in GitHub Desktop.
Save satoshin2071/10456739 to your computer and use it in GitHub Desktop.
rubyでファイル名/ディレクトリ名一覧出力
Dir::foreach('.') {|f|
if File::ftype(f) == "file" #ここをdirectoryに変更 
puts "#{f}"
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment