{"action":"closed","issue":{"url":"https://api.github.com/repos/ambarket/botbattle/issues/1","labels_url":"https://api.github.com/repos/ambarket/botbattle/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ambarket/botbattle/issues/1/comments","events_url":"https://api.github.com/repos/ambarket/botbattle/issues/1/events","html_url":"https://github.com/ambarket/botbattle/issues/1","id":58476987,"number":1,"title":"Create file and folder problems on Linux","user":{"login":"ambarket","id":7129261,"avatar_url":"https://avatars.githubusercontent.com/u/7129261?v=3","gravatar_id":"","url":"https://api.github.com/users/ambarket","html_url":"https://github.com/ambarket","followers_url":"https://api.github.com/users/ambarket/followers","following_url":"https://api.github.com/users/ambarket/following{/other_user}","gists_url":"https://api.github.com/users/ambarket/gists{/gist_id}","starred_url":"https://api.github.com/users/ambarket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambarket/subscriptions","organizations_url":"https://api.github.com/users/ambarket/orgs","repos_url":"https://api.github.com/users/ambarket/repos","events_url":"https://api.github.com/users/ambarket/events{/privacy}","received_events_url":"https://api.github.com/users/ambarket/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ambarket/botbattle/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"Stevenpc3","id":6076207,"avatar_url":"https://avatars.githubusercontent.com/u/6076207?v=3","gravatar_id":"","url":"https://api.github.com/users/Stevenpc3","html_url":"https://github.com/Stevenpc3","followers_url":"https://api.github.com/users/Stevenpc3/followers","following_url":"https://api.github.com/users/Stevenpc3/following{/other_user}","gists_url":"https://api.github.com/users/Stevenpc3/gists{/gist_id}","starred_url":"https://api.github.com/users/Stevenpc3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stevenpc3/subscriptions","organizations_url":"https://api.github.com/users/Stevenpc3/orgs","repos_url":"https://api.github.com/users/Stevenpc3/repos","events_url":"https://api.github.com/users/Stevenpc3/events{/privacy}","received_events_url":"https://api.github.com/users/Stevenpc3/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ambarket/botbattle/milestones/1","html_url":"https://github.com/ambarket/botbattle/milestones/support%20for%20Linux","labels_url":"https://api.github.com/repos/ambarket/botbattle/milestones/1/labels","id":989642,"number":1,"title":"support for Linux","description":null,"creator":{"login":"Stevenpc3","id":6076207,"avatar_url":"https://avatars.githubusercontent.com/u/6076207?v=3","gravatar_id":"","url":"https://api.github.com/users/Stevenpc3","html_url":"https://github.com/Stevenpc3","followers_url":"https://api.github.com/users/Stevenpc3/followers","following_url":"https://api.github.com/users/Stevenpc3/following{/other_user}","gists_url":"https://api.github.com/users/Stevenpc3/gists{/gist_id}","starred_url":"https://api.github.com/users/Stevenpc3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stevenpc3/subscriptions","organizations_url":"https://api.github.com/users/Stevenpc3/orgs","repos_url":"https://api.github.com/users/Stevenpc3/repos","events_url":"https://api.github.com/users/Stevenpc3/events{/privacy}","received_events_url":"https://api.github.com/users/Stevenpc3/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-02-21T22:21:34Z","updated_at":"2015-03-04T01:14:43Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-21T22:03:26Z","updated_at":"2015-03-04T01:14:43Z","closed_at":"2015-03-04T01:14:43Z","body":"Permissions Issue:\r\nCreate Folder -> /test -> ERRACC (This is what should happen since app doesn't have access to root)\r\nCreate File -> /test/test2.txt -> Infinite loop (Error creating directory: Error: ENOENT, mkdir '')\r\n--- This may actually just be a side effect of the backslash issue described below since the same look occurs when trying to make createFile automatically create directories\r\n\r\nCreate Folder:\r\ntest2/test3 -> works as expected\r\ntest2\\test3 -> Creates folder literally named \"test2\\test3\" (Linux doesn't support backslash in file and folder paths as windows does. And windows supports forward slash so make everything forward slash and if the user enters backslashes should probably automatically convert them to forward slashes for consitency)\r\n\r\nCreate File:\r\n\\test\\test2.txt -> Again literally creates the file \"\\test\\test2.txt \" inside the application directory\r\n\r\ntest2/test2.txt -> Works as expected creates test2.txt inside test2 folder (test2 folder already existed)\r\ntest/test2.txt -> Infinite loop (Error creating directory: Error: ENOENT, mkdir '')  (test folder didn't exist)\r\n---- So the automatic folder creation by createFile doesn't work if test folder didnt exist\r\n\r\n\r\nIn general - Main problem seems to be the backslash, forward slash mismatch.\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}