{"action":"created","issue":{"url":"https://api.github.com/repos/schroffl/teamspeak-filesystem/issues/1","repository_url":"https://api.github.com/repos/schroffl/teamspeak-filesystem","labels_url":"https://api.github.com/repos/schroffl/teamspeak-filesystem/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/schroffl/teamspeak-filesystem/issues/1/comments","events_url":"https://api.github.com/repos/schroffl/teamspeak-filesystem/issues/1/events","html_url":"https://github.com/schroffl/teamspeak-filesystem/issues/1","id":339135712,"node_id":"MDU6SXNzdWUzMzkxMzU3MTI=","number":1,"title":"Multiple files error","user":{"login":"bigHapiness","id":25178244,"node_id":"MDQ6VXNlcjI1MTc4MjQ0","avatar_url":"https://avatars0.githubusercontent.com/u/25178244?v=4","gravatar_id":"","url":"https://api.github.com/users/bigHapiness","html_url":"https://github.com/bigHapiness","followers_url":"https://api.github.com/users/bigHapiness/followers","following_url":"https://api.github.com/users/bigHapiness/following{/other_user}","gists_url":"https://api.github.com/users/bigHapiness/gists{/gist_id}","starred_url":"https://api.github.com/users/bigHapiness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigHapiness/subscriptions","organizations_url":"https://api.github.com/users/bigHapiness/orgs","repos_url":"https://api.github.com/users/bigHapiness/repos","events_url":"https://api.github.com/users/bigHapiness/events{/privacy}","received_events_url":"https://api.github.com/users/bigHapiness/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-07T10:32:25Z","updated_at":"2018-07-07T16:12:21Z","closed_at":null,"author_association":"NONE","body":"Hi, @schroffl find a error. Method getFiles throw an error if we have one more files (icons for examples)\r\non list.name.map function. \r\nI've replace that to\r\n```\r\n'getFiles': (cid, path, cpw) => {\r\n\t\treturn query.send('ftgetfilelist', { cid, 'cpw': cpw || '', path })\r\n\t\t\t.then(list => typeof list.name === 'string' ? \r\n\t\t\t\t[ { 'name': list.name, 'path': list.path, 'size': list.size, 'datetime': list.datetime, 'type': list.type == 1 ? 'file' : 'dir' } ] : \r\n\t\t\t\tlist.map((file, i) => ({ 'name': file.name, path: list.path, 'size': file.size, 'datetime': file.datetime, 'type': file.type == 1 ? 'file' : 'dir'})) );\r\n\t},\r\n```\r\n\r\nWorks fine\r\n\r\np.s* but file path show normal on first item in object \r\n\r\n``` \r\n[ { name: 'icon_1074977208',\r\n    path: '/icons',\r\n    size: '607',\r\n    datetime: '1530958000',\r\n    type: 'file' },\r\n  { name: 'icon_1397428609',\r\n    path: undefined,\r\n    size: '886',\r\n    datetime: '1530958001',\r\n    type: 'file' } ] \r\n```"},"comment":{"url":"https://api.github.com/repos/schroffl/teamspeak-filesystem/issues/comments/403226053","html_url":"https://github.com/schroffl/teamspeak-filesystem/issues/1#issuecomment-403226053","issue_url":"https://api.github.com/repos/schroffl/teamspeak-filesystem/issues/1","id":403226053,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzIyNjA1Mw==","user":{"login":"bigHapiness","id":25178244,"node_id":"MDQ6VXNlcjI1MTc4MjQ0","avatar_url":"https://avatars0.githubusercontent.com/u/25178244?v=4","gravatar_id":"","url":"https://api.github.com/users/bigHapiness","html_url":"https://github.com/bigHapiness","followers_url":"https://api.github.com/users/bigHapiness/followers","following_url":"https://api.github.com/users/bigHapiness/following{/other_user}","gists_url":"https://api.github.com/users/bigHapiness/gists{/gist_id}","starred_url":"https://api.github.com/users/bigHapiness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigHapiness/subscriptions","organizations_url":"https://api.github.com/users/bigHapiness/orgs","repos_url":"https://api.github.com/users/bigHapiness/repos","events_url":"https://api.github.com/users/bigHapiness/events{/privacy}","received_events_url":"https://api.github.com/users/bigHapiness/received_events","type":"User","site_admin":false},"created_at":"2018-07-07T16:12:21Z","updated_at":"2018-07-07T16:12:21Z","author_association":"NONE","body":"currently not at home and can not get to the development resources, but the following error\r\n`Cannot read property map of undefined`"}}
{"actor":{"display_login":"bigHapiness"}}