 
 func ProcessDirectoryOrFile(path: String)
 {
-    if isDirectoryAtPath(fmgr, path) {
+    if isDirectoryAtPath(path) {
         ProcessDirectory(path);
         return;
     }

#!/usr/bin/env xcrun swift
// Fix doubly UTF8 encoded file names

// entry point is at the bottom

var verbose = 0;        // verbosity level
var dryrun = false;     // don't actually do anything
var recurse = false;    // recursively traverse directories
var memoizer: Dictionary<String, UnicodeScalar> = [:]
let fmgr = NSFileManager.defaultManager();

enum FixResult {
