Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [R] FTP Download doesn't work  (Read 1706 times)

0 Members and 1 Guest are viewing this topic.

Sozary

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • Email
[R] FTP Download doesn't work
« on: October 11, 2016, 08:00:05 am »
Hi,
I have a problem with download function of ftp class.
Indeed, when I try to download one file with the command "my_ftp.download("test.txt","",sf::Ftp::Ascii)", the error 1003 is occured.
But it s strange because there is no error message (with getMessage()) ...
Somebody can help me?
Thank  sby advance
« Last Edit: October 11, 2016, 04:12:08 pm by Sozary »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10826
    • View Profile
    • development blog
    • Email
AW: FTP Download doesn't work
« Reply #1 on: October 11, 2016, 09:50:43 am »
It's an error code by SFML and as the documentation says means: "Not part of the FTP standard, generated by SFML when a local file cannot be read or written."
So make aure you have write access in the directory you try to save to.

http://www.sfml-dev.org/documentation/2.4.0/classsf_1_1Ftp_1_1Response.php#af81738f06b6f571761696291276acb3baed2c74a9f335dee1463ca1a4f41c6478
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Sozary

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • Email
Re: FTP Download doesn't work
« Reply #2 on: October 11, 2016, 04:11:54 pm »
Than you for your answer.
Solved