Please let me know if more details or code is needed:
I have two scenarios. One works and one fails even though the code is exactly the same.
1) Take a CSV file already on the box and parse it. Works perfectly. No issues perfectly.
2) Take a CSV file that was just created and attempt to parse it and I receive: ENOENT, no such file or directory '/Users/Home/dev/csv/TwFrI5vhdownload.csv
Same CSV file format and all that. Wouldn't matter anyway because the created file won't even open. It fails with the error above even though the file does exist. If I restart Node and attempt to grab that file, then it works perfectly. If I run fs.stat on the newly created file it fails.
I've tried timeouts, external callbacks, etc.. but with the dynamically created file it always fails.
What am I missing here? Is the file locked and I don't know it?
Thanks!
System:
OSX Lion
Node v0.6.7