|
|
|
@ -38,7 +38,7 @@ public class MicroStorage<T : MicroStorable> { |
|
|
|
self.write() |
|
|
|
self.write() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func write() { |
|
|
|
public func write() { |
|
|
|
do { |
|
|
|
do { |
|
|
|
let jsonString: String = try self.item.jsonString() |
|
|
|
let jsonString: String = try self.item.jsonString() |
|
|
|
let _ = try FileUtils.writeToDocumentDirectory(content: jsonString, fileName: T.fileName) |
|
|
|
let _ = try FileUtils.writeToDocumentDirectory(content: jsonString, fileName: T.fileName) |
|
|
|
|