So, I've got a little electron app that uploads files to site. In order to track what I've already uploaded, I have a simple txt log file that I append the path to whenever I upload a file.
I have a logging class that is supposed to tell me if a file has already been uploaded. I've been using jfile and it's grep method but it's not working on windows. On my mac everything is working great. I'm using path.join wherever applicable, so I dont think it's a slash issues between platforms. The log file is getting written to just fine as well.
What's an alternative way to check for a string in a potentially large log file?
via Jayson Bailey
No comments:
Post a Comment