Recent

Author Topic: Lnet Chmod via TLFTPClientComponent  (Read 4611 times)

minusk

  • Newbie
  • Posts: 2
Lnet Chmod via TLFTPClientComponent
« on: June 01, 2010, 05:32:22 pm »
Hello

I work with lnet, but I do not see how to change the chmod in ftp a file, if anyone could help me.

Thank you in advance

minusk

  • Newbie
  • Posts: 2
Re: Lnet Chmod via TLFTPClientComponent
« Reply #1 on: June 02, 2010, 04:55:43 am »
Hello

I just found the solution I give in case it will help other people.

Quote
FTP.SendMessage('SITE CHMOD 755 ' + LabelNameExe.Caption + #13#10);

Good day

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Re: Lnet Chmod via TLFTPClientComponent
« Reply #2 on: June 03, 2010, 02:42:10 pm »
CHmod wasn't aadded to the FTP commands list yet so yes, the easiest way to do it is to send the commandstring directly. I'll expand the commands for CHMOD and others file operations in 0.7.x :)

You can temporarily also do it by modifying TLFTPClient.EvaluateAnswer + adding the required enum and procedure for issueing the command. Then lNet will take care of the reply as well and hold the status in the state machine.

 

TinyPortal © 2005-2018