Skip to content

Instantly share code, notes, and snippets.

View samhann's full-sized avatar

Samhan Salahuddin samhann

  • Cleartrip.com
  • Bangalore
View GitHub Profile
@samhann
samhann / Directories.swift
Created December 21, 2015 10:56
Iterate Directories Using Swift Generators
import Foundation
class OS
{
static func enumeratePath(let path: String)->AnyGenerator<String>
{
let fileManager = NSFileManager.defaultManager()
let enumerator:NSDirectoryEnumerator? = fileManager.enumeratorAtPath(path)
@samhann
samhann / Directories.swift
Created December 21, 2015 10:55
Iterate Directories Using Swift Generators
Skip to content
Search…
All gists
GitHub
Sign up for a GitHub account Sign in
Create a gist now
Instantly share code, notes, and snippets.
Delete