{"action":"opened","issue":{"url":"https://api.github.com/repos/sergi/jsftp/issues/258","repository_url":"https://api.github.com/repos/sergi/jsftp","labels_url":"https://api.github.com/repos/sergi/jsftp/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/sergi/jsftp/issues/258/comments","events_url":"https://api.github.com/repos/sergi/jsftp/issues/258/events","html_url":"https://github.com/sergi/jsftp/issues/258","id":258196037,"number":258,"title":"put doesn't work","user":{"login":"Luisadz24","id":10442264,"avatar_url":"https://avatars0.githubusercontent.com/u/10442264?v=4","gravatar_id":"","url":"https://api.github.com/users/Luisadz24","html_url":"https://github.com/Luisadz24","followers_url":"https://api.github.com/users/Luisadz24/followers","following_url":"https://api.github.com/users/Luisadz24/following{/other_user}","gists_url":"https://api.github.com/users/Luisadz24/gists{/gist_id}","starred_url":"https://api.github.com/users/Luisadz24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luisadz24/subscriptions","organizations_url":"https://api.github.com/users/Luisadz24/orgs","repos_url":"https://api.github.com/users/Luisadz24/repos","events_url":"https://api.github.com/users/Luisadz24/events{/privacy}","received_events_url":"https://api.github.com/users/Luisadz24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-16T00:49:54Z","updated_at":"2017-09-16T00:49:54Z","closed_at":null,"author_association":"NONE","body":"I have a problem when I tried to put a file in the fTP server, my program show me an error that is: \r\n\r\nError: Local file doesn't exist.\r\n    at C:\\Users\\000\\Documents\\Trabajo\\Mabe\\Programas javascript\\clienteftp\\node_modules\\jsftp\\lib\\jsftp.js:572:25\r\n    at FSReqWrap.oncomplete (fs.js:112:15)\r\n\r\nand my file exists, my code is the next (sorry for my bad english)\r\n\r\n`var JSFtp = require(\"jsftp\");\r\n\r\nvar buffer='C:/Users/000/Documentos/frente0002.jpg';\r\nvar remote='/acm/img.jpg';\r\n \r\nvar Ftp = new JSFtp({\r\n  host: 'ip',\r\n  port: 21, // defaults to 21\r\n  user: 'cliente',\r\n  pass:'',\r\n  debugMode: true  \r\n});\r\n\r\nFtp.raw(\"cwd\", \"/\",function(err, data) {\r\n    if (err) return console.error(err);\r\n     console.log(\"quede en cwd\");\r\n    console.log(data.text); // Show the FTP response text to the user\r\n    console.log(data.code); // Show the FTP response code to the user\r\n\r\n    Ftp.raw(\"pwd\", \"/new\", function(err, data) {\r\n    if (err) return console.error(err);\r\n    console.log(\"quede en pwd\");\r\n    console.log(data.text); // Show the FTP response text to the user\r\n    console.log(data.code); // Show the FTP response code to the user\r\n\r\n             Ftp.put(buffer, remote, function(hadError) {\r\n              if(hadError)return console.log(hadError);\r\n                console.log(\"Archivo en servidor\");\r\n\r\n                 Ftp.raw(\"quit\", function(err, data) {\r\n                      if (err) return console.error(err);\r\n\r\n                      console.log(data.text); // Show the FTP response text to the user\r\n                      console.log(data.code); // Show the FTP response code to the user\r\n\r\n                    });                \r\n                   \r\n        });\r\n\r\n  });    \r\n\r\n});`\r\n"}}
{"actor":{"display_login":"Luisadz24"}}