{"action":"closed","issue":{"url":"https://api.github.com/repos/filerjs/filer/issues/428","repository_url":"https://api.github.com/repos/filerjs/filer","labels_url":"https://api.github.com/repos/filerjs/filer/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/filerjs/filer/issues/428/comments","events_url":"https://api.github.com/repos/filerjs/filer/issues/428/events","html_url":"https://github.com/filerjs/filer/issues/428","id":362683671,"node_id":"MDU6SXNzdWUzNjI2ODM2NzE=","number":428,"title":"problem with using fs.stat","user":{"login":"Janice0218","id":43356495,"node_id":"MDQ6VXNlcjQzMzU2NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/43356495?v=4","gravatar_id":"","url":"https://api.github.com/users/Janice0218","html_url":"https://github.com/Janice0218","followers_url":"https://api.github.com/users/Janice0218/followers","following_url":"https://api.github.com/users/Janice0218/following{/other_user}","gists_url":"https://api.github.com/users/Janice0218/gists{/gist_id}","starred_url":"https://api.github.com/users/Janice0218/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janice0218/subscriptions","organizations_url":"https://api.github.com/users/Janice0218/orgs","repos_url":"https://api.github.com/users/Janice0218/repos","events_url":"https://api.github.com/users/Janice0218/events{/privacy}","received_events_url":"https://api.github.com/users/Janice0218/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"Janice0218","id":43356495,"node_id":"MDQ6VXNlcjQzMzU2NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/43356495?v=4","gravatar_id":"","url":"https://api.github.com/users/Janice0218","html_url":"https://github.com/Janice0218","followers_url":"https://api.github.com/users/Janice0218/followers","following_url":"https://api.github.com/users/Janice0218/following{/other_user}","gists_url":"https://api.github.com/users/Janice0218/gists{/gist_id}","starred_url":"https://api.github.com/users/Janice0218/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janice0218/subscriptions","organizations_url":"https://api.github.com/users/Janice0218/orgs","repos_url":"https://api.github.com/users/Janice0218/repos","events_url":"https://api.github.com/users/Janice0218/events{/privacy}","received_events_url":"https://api.github.com/users/Janice0218/received_events","type":"User","site_admin":false},"assignees":[{"login":"Janice0218","id":43356495,"node_id":"MDQ6VXNlcjQzMzU2NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/43356495?v=4","gravatar_id":"","url":"https://api.github.com/users/Janice0218","html_url":"https://github.com/Janice0218","followers_url":"https://api.github.com/users/Janice0218/followers","following_url":"https://api.github.com/users/Janice0218/following{/other_user}","gists_url":"https://api.github.com/users/Janice0218/gists{/gist_id}","starred_url":"https://api.github.com/users/Janice0218/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janice0218/subscriptions","organizations_url":"https://api.github.com/users/Janice0218/orgs","repos_url":"https://api.github.com/users/Janice0218/repos","events_url":"https://api.github.com/users/Janice0218/events{/privacy}","received_events_url":"https://api.github.com/users/Janice0218/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-21T16:12:32Z","updated_at":"2018-12-02T05:14:15Z","closed_at":"2018-12-02T05:14:15Z","author_association":"CONTRIBUTOR","body":"I was [reading the code](https://github.com/Janice0218/filer.git),\r\n[changed code](https://github.com/Janice0218/filer/commit/e73099ce1a32db75e19c6157431a7263ab80b8c6)\r\n\r\n`it('should return an error if path does not exist', function(done) {\r\n\r\n     var fs = util.fs();\r\n\r\n     //'stat' should be 'lstat'\r\n\r\n     fs.stat('/tmp', function(error, result) {\r\n\r\n     expect(error).to.exist;\r\n\r\n     expect(error.code).to.equal('ENOENT');\r\n\r\n      expect(result).not.to.exist;\r\n\r\n     done();\r\n     });\r\n});`\r\n\r\n fs.stat should be fs.lstat.\r\nthere have a little bit different between those:\r\nstat follows symlinks. When given a path that is a symlink, it returns the stat of the target of the symlink.\r\nlstat doesn't follow symlinks. When given a path that is a symlink it returns the stat of the symlink.\r\nWhen a file is a symbolic link, lstat returns information about the symbolic link itself( '/myfilelink'); \r\nstat returns information about the file pointed to by the link( '/'). \r\n"}}
{"actor":{"display_login":"humphd"}}