{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/7254","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/7254/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/7254/comments","events_url":"https://api.github.com/repos/electron/electron/issues/7254/events","html_url":"https://github.com/electron/electron/issues/7254","id":177731610,"number":7254,"title":"v1.4.0 fs.accessSync throw ENOENT testing asar file","user":{"login":"micheletedeschi","id":1847274,"avatar_url":"https://avatars.githubusercontent.com/u/1847274?v=3","gravatar_id":"","url":"https://api.github.com/users/micheletedeschi","html_url":"https://github.com/micheletedeschi","followers_url":"https://api.github.com/users/micheletedeschi/followers","following_url":"https://api.github.com/users/micheletedeschi/following{/other_user}","gists_url":"https://api.github.com/users/micheletedeschi/gists{/gist_id}","starred_url":"https://api.github.com/users/micheletedeschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheletedeschi/subscriptions","organizations_url":"https://api.github.com/users/micheletedeschi/orgs","repos_url":"https://api.github.com/users/micheletedeschi/repos","events_url":"https://api.github.com/users/micheletedeschi/events{/privacy}","received_events_url":"https://api.github.com/users/micheletedeschi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-19T08:46:44Z","updated_at":"2016-09-27T15:56:04Z","closed_at":"2016-09-27T15:56:04Z","body":"* Electron version: v1.4.0\r\n* Operating system: macOS Sierra 10.12\r\n\r\nI've update to the last Electron version (actually 1.4.0) and fs.acceccSync doesn't work anymore.\r\n\r\nexecuting this code:\r\n```\r\nconst path = '/path/to/file.asar';\r\nfs.accessSync(path, fs.constants.F_OK);\r\n```\r\n\r\nthrow:\r\n```\r\nENOENT,  not found in /path/to/file.asar\r\n       at notFoundError (ELECTRON_ASAR.js:110:19)\r\n       at Object.fs.accessSync (ELECTRON_ASAR.js:432:9)\r\n```\r\n\r\nIf i check file inside or outside asar file work correctly.\r\n\r\nWith Electron v.1.3.4 works fine."}}
{"actor":{"display_login":"kevinsawicki"}}