Juan Cruz Viotti
Juan Cruz Viotti
Hey @kevintravels93 > If I try to change the file in the explorer Do you mean you can reproduce the `EBUSY` by trying to change the file with something like...
Hey there! > but given storage.clear() didn't work What do you mean by it didn't work? Did you get an exception?
That seems strange. `.clear()` would just wipe out all the data files using `rimraf`: https://github.com/electron-userland/electron-json-storage/blob/master/lib/storage.js#L605. What OS are you running this on? For example, I've seen similar weird problems due...
Interesting. Can you re-confirm that using `.clear()` does indeed not work on your machine, and no errors are reported?
Hey there, thanks for reaching out. We used to have promises support at some point using Bluebird, however we dropped them given some nasty issues with ES6 promises (see https://github.com/electron-userland/electron-json-storage/issues/5)....
I'm happy to slowly transition to native promises :+1:
@Jack-Barry We initially had promise support through Bluebird, but we faced some inter-operatibility issues between Bluebird and Electron that made us go back to plain callbacks. Native promises will probably...
I'd definitely accept a PR for such a function. Accepting an object is probably better than an array though: ```js storage.setMany({ key1: json, key2: json, key3: json }, function(error) {...
Hey @Slapbox , That is indeed super strange. I did some research and found some interesting things that seem related: - https://stackoverflow.com/questions/10913632/streamwriter-writing-nul-characters-at-the-end-of-the-file-when-system-shutdown: Claims its known NTFS/Windows behaviour (?) - https://stackoverflow.com/questions/27268994/why-do-i-have-a-million-null-characters-at-the-end-of-my-csv-file:...
That's a great idea. I'll happily accept a pull request that adds an optional object argument to `.set()` allowing to set something like `merge: true`.