try container.encode(comment, forKey: .comment)
}
</pre>
===ディレクトリ判定===
----
<pre>
private static let fm = FileManager.default
static func isDirectory(path: String) -> Bool {
var isDir = ObjCBool(false)
fm.fileExists(atPath: path, isDirectory: &isDir)
return isDir.boolValue
}
</pre>