{"action":"opened","issue":{"url":"https://api.github.com/repos/Orion98MC/node_rrd/issues/9","labels_url":"https://api.github.com/repos/Orion98MC/node_rrd/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Orion98MC/node_rrd/issues/9/comments","events_url":"https://api.github.com/repos/Orion98MC/node_rrd/issues/9/events","html_url":"https://github.com/Orion98MC/node_rrd/issues/9","id":53534827,"number":9,"title":"Error when running info() then create()","user":{"login":"Funi1234","id":1785635,"avatar_url":"https://avatars.githubusercontent.com/u/1785635?v=3","gravatar_id":"","url":"https://api.github.com/users/Funi1234","html_url":"https://github.com/Funi1234","followers_url":"https://api.github.com/users/Funi1234/followers","following_url":"https://api.github.com/users/Funi1234/following{/other_user}","gists_url":"https://api.github.com/users/Funi1234/gists{/gist_id}","starred_url":"https://api.github.com/users/Funi1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Funi1234/subscriptions","organizations_url":"https://api.github.com/users/Funi1234/orgs","repos_url":"https://api.github.com/users/Funi1234/repos","events_url":"https://api.github.com/users/Funi1234/events{/privacy}","received_events_url":"https://api.github.com/users/Funi1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-06T16:48:08Z","updated_at":"2015-01-06T16:48:08Z","closed_at":null,"body":"When info() is called and the file doesnt exist it returns \"{}\". I'm trying to use this to indicate if the rrd file in questions exists.\r\n\r\nIf the file doesnt exist I then want to call the create() function to create it however an error is returned\r\n\"opening 'someFile.rrd': No such file or directory\".\r\n\r\nThe create() function alone works correctly and I've only encountered this when the call preceeding the create() is the info() call. \r\n\r\nI thought maybe info() is locking the file or something similar but I'm unsure.\r\n\r\n~~~javascript\r\nrrd.info(\"someFile.rrd\", function (info) {\r\n    if (result === null) { //Check that confirms no rrd exists\r\n        rrd.create(\"someFile.rrd\",30,...,function(error){\r\n                //Error thrown in here\r\n        }) \r\n    }   \r\n});\r\n~~~"}}