{"action":"created","issue":{"url":"https://api.github.com/repos/appium/node-adb-client/issues/17","repository_url":"https://api.github.com/repos/appium/node-adb-client","labels_url":"https://api.github.com/repos/appium/node-adb-client/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/appium/node-adb-client/issues/17/comments","events_url":"https://api.github.com/repos/appium/node-adb-client/issues/17/events","html_url":"https://github.com/appium/node-adb-client/pull/17","id":154417698,"number":17,"title":"[WIP] Add list cmd","user":{"login":"gmaclennan","id":290457,"avatar_url":"https://avatars.githubusercontent.com/u/290457?v=3","gravatar_id":"","url":"https://api.github.com/users/gmaclennan","html_url":"https://github.com/gmaclennan","followers_url":"https://api.github.com/users/gmaclennan/followers","following_url":"https://api.github.com/users/gmaclennan/following{/other_user}","gists_url":"https://api.github.com/users/gmaclennan/gists{/gist_id}","starred_url":"https://api.github.com/users/gmaclennan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmaclennan/subscriptions","organizations_url":"https://api.github.com/users/gmaclennan/orgs","repos_url":"https://api.github.com/users/gmaclennan/repos","events_url":"https://api.github.com/users/gmaclennan/events{/privacy}","received_events_url":"https://api.github.com/users/gmaclennan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-12T07:44:47Z","updated_at":"2016-05-12T08:34:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/appium/node-adb-client/pulls/17","html_url":"https://github.com/appium/node-adb-client/pull/17","diff_url":"https://github.com/appium/node-adb-client/pull/17.diff","patch_url":"https://github.com/appium/node-adb-client/pull/17.patch"},"body":"This adds the `list` command, fixes #14 \r\n\r\nLists files/directories in the directory `remotePath`. See https://github.com/gmaclennan/node-adb-client/blob/add-list-cmd/lib/examples/list.js\r\n\r\nStill to do, help appreciated:\r\n\r\n- [ ] Add tests\r\n- [ ] Check that `remotePath` is a directory and not a file\r\n- [ ] Figure out how to interpret `mode` and `modified`\r\n"},"comment":{"url":"https://api.github.com/repos/appium/node-adb-client/issues/comments/218693810","html_url":"https://github.com/appium/node-adb-client/pull/17#issuecomment-218693810","issue_url":"https://api.github.com/repos/appium/node-adb-client/issues/17","id":218693810,"user":{"login":"gmaclennan","id":290457,"avatar_url":"https://avatars.githubusercontent.com/u/290457?v=3","gravatar_id":"","url":"https://api.github.com/users/gmaclennan","html_url":"https://github.com/gmaclennan","followers_url":"https://api.github.com/users/gmaclennan/followers","following_url":"https://api.github.com/users/gmaclennan/following{/other_user}","gists_url":"https://api.github.com/users/gmaclennan/gists{/gist_id}","starred_url":"https://api.github.com/users/gmaclennan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmaclennan/subscriptions","organizations_url":"https://api.github.com/users/gmaclennan/orgs","repos_url":"https://api.github.com/users/gmaclennan/repos","events_url":"https://api.github.com/users/gmaclennan/events{/privacy}","received_events_url":"https://api.github.com/users/gmaclennan/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T08:34:32Z","updated_at":"2016-05-12T08:34:32Z","body":"Researching files mode returned from `list`, comparing to `ls -al` in shell:\r\n\r\nBinary representation  | `ls -al` output\r\n--------------------|--------------\r\n`1010000111111111` |  `lrwxrwxrwx`\r\n`0100000111000000` | `drwx------`\r\n`1000000110100100` | `-rw-r--r--`\r\n\r\nJust need to get those first 3 bits to determine if the file is symlink, file, or directory. How do I do that?\r\n"}}