Created
November 6, 2014 04:56
-
-
Save yat1ma30/d05265aaadbee0453e21 to your computer and use it in GitHub Desktop.
ディレクトリにあるファイル一覧を表示する ref: http://qiita.com/ottati/items/d49497a7cc76adde1cce
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
let manager = NSFileManager.defaultManager() | |
let list = manager.contentsOfDirectoryAtPath("/spam/ham/egg", error: nil)! | |
for path in list { | |
println(path as NSString) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment