Skip to content

Instantly share code, notes, and snippets.

@yat1ma30
Created November 6, 2014 04:56
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 yat1ma30/d05265aaadbee0453e21 to your computer and use it in GitHub Desktop.
Save yat1ma30/d05265aaadbee0453e21 to your computer and use it in GitHub Desktop.
ディレクトリにあるファイル一覧を表示する  ref: http://qiita.com/ottati/items/d49497a7cc76adde1cce
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