Forum > Networking and Web Programming
Lnet Chmod via TLFTPClientComponent
(1/1)
minusk:
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:
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);
--- End quote ---
Good day
Almindor:
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.
Navigation
[0] Message Index