storbinary işleminden önce cwd komutunu çalıştırıp dizin değiştirin:

ftp_server.cwd('/home/domain.com/public_html')