{"action":"created","issue":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/757","labels_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/757/labels{/name}","comments_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/757/comments","events_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/757/events","html_url":"https://github.com/KSP-KOS/KOS/issues/757","id":67207566,"number":757,"title":"List files in does not return a list of type fileinfo.","user":{"login":"TDW89","id":5874693,"avatar_url":"https://avatars.githubusercontent.com/u/5874693?v=3","gravatar_id":"","url":"https://api.github.com/users/TDW89","html_url":"https://github.com/TDW89","followers_url":"https://api.github.com/users/TDW89/followers","following_url":"https://api.github.com/users/TDW89/following{/other_user}","gists_url":"https://api.github.com/users/TDW89/gists{/gist_id}","starred_url":"https://api.github.com/users/TDW89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TDW89/subscriptions","organizations_url":"https://api.github.com/users/TDW89/orgs","repos_url":"https://api.github.com/users/TDW89/repos","events_url":"https://api.github.com/users/TDW89/events{/privacy}","received_events_url":"https://api.github.com/users/TDW89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-08T20:02:38Z","updated_at":"2015-04-08T20:57:31Z","closed_at":null,"body":"`List files in` does not return a list of type fileinfo.\r\nEither that or the suffixes are not working.\r\n```\r\nlist files in filelist.\r\nfor files in filelist {\r\nprint file:name. //or any of the other file info suffixes.\r\n}.\r\n```\r\ngives a suffix not found error.\r\n\r\n\r\nNot sure if this is a separate issue as so will mention it here and create another one if necessary.\r\nFound the above when trying to protect against running files that didn't exist. Something else I tried was this:\r\n```\r\nclearscreen.\r\nlog \"\" to my_prog.ks. //create a file with known name\r\nlist files in fileList.\r\nprint \"fileList:contains(''my_prog.ks'')\".\r\nprint fileList:contains(\"my_prog.ks\").\r\nprint \"\".\r\nset index to fileList:iterator.\r\nindex:next.\r\nuntil index:atend {\r\n if index:value = \"my_prog.ks\" {\r\n  print \"Step through found file at item: \" +index:index.\r\n }.\r\n index:next.\r\n}.\r\n```\r\nthis will tell you that the list doesn't contain a known file and then find it for you anyway. This only happens with files and I was unsure about creating another issue if it is a symptom of the above.\r\n"},"comment":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/comments/91035266","html_url":"https://github.com/KSP-KOS/KOS/issues/757#issuecomment-91035266","issue_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/757","id":91035266,"user":{"login":"abenkovskii","id":11031560,"avatar_url":"https://avatars.githubusercontent.com/u/11031560?v=3","gravatar_id":"","url":"https://api.github.com/users/abenkovskii","html_url":"https://github.com/abenkovskii","followers_url":"https://api.github.com/users/abenkovskii/followers","following_url":"https://api.github.com/users/abenkovskii/following{/other_user}","gists_url":"https://api.github.com/users/abenkovskii/gists{/gist_id}","starred_url":"https://api.github.com/users/abenkovskii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abenkovskii/subscriptions","organizations_url":"https://api.github.com/users/abenkovskii/orgs","repos_url":"https://api.github.com/users/abenkovskii/repos","events_url":"https://api.github.com/users/abenkovskii/events{/privacy}","received_events_url":"https://api.github.com/users/abenkovskii/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T20:57:31Z","updated_at":"2015-04-08T20:57:31Z","body":"@TDW89 2. that's wierd. a list does not `:contains` an item it contains. It might be case-sensitive because kOS's `List:contains()` just calls `C#'s List.contains()`. Try it with lists of strings, add `print fileList.`.\r\nIs `\"string\" = \"StRiNg\"` true in kOS?"}}