 
 private struct AccountSpecifier {
 
-	let type: String
+	let type: AccountType
 	let identifier: String
 	let folderPath: String
 	let folderName: String

		if !FileManager.default.rs_fileIsFolder(folderPath) {
			return nil
		}
		let name = NSString(string: folderPath).lastPathComponent
		if name.hasPrefix(".") {
			return nil
		}
		let nameComponents = name.components(separatedBy: "-")
		if nameComponents.count != 2 {
			return nil
		}

		self.folderPath = folderPath
		self.folderName = name
		self.type = nameComponents[0]
		self.identifier = nameComponents[1]

		self.dataFilePath = accountFilePathWithFolder(self.folderPath)
	}
}



	public func createAccount(type: AccountType, username: String? = nil, password: String? = nil) -> Account {
		
		let accountID = UUID().uuidString
		let accountFolder = (accountsFolder as NSString).appendingPathComponent("\(type.rawValue)_\(accountID)")

		do {
			try FileManager.default.createDirectory(atPath: accountFolder, withIntermediateDirectories: true, attributes: nil)
