Created
April 11, 2014 10:31
-
-
Save satoshin2071/10456739 to your computer and use it in GitHub Desktop.
rubyでファイル名/ディレクトリ名一覧出力
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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