     }
     
     
-    public func saveFile(#fileName: String, contents: NSData,
+    public func saveFile(fileName fileName: String, contents: NSData,
         success :((savedRelativePath: String?) -> Void)?, faiure:((error: NSError?) -> Void)?) {
         let subDirectoryPath = self.subDirectoryPath ?? ""
         let path = self.directoryType.Path() + "\(subDirectoryPath)/" + fileName

                WHLog("Create Directory Failed \(directoryPath)")
                return false
            }
        } else {
            WHLog("Create Directory Failed \(directoryPath)")
            return false
        }
    }

    
    private func saveAndWait(#savePath: String, contents: NSData) -> Bool {
        
        let createLog: (Bool -> (Void)) = { (success: Bool) -> Void in
            // log
            var stateString = success ? "Success" : "Failed"
            var log = [
                "State" : stateString,
                "FilePath" : savePath
            ]

            })
    }
    
    public func saveFileAndWait(fileName fileName: String?, contents: NSData?) -> String? {
        if let fileName = fileName {
            let path = self.saveDirectoryAbsolutePath() + fileName
            if let contents = contents {
