ftp, set file permissions
ftp, set file permissions
is there a way to set (via FTP) a file's permissions (ie: 0644)
Re: ftp, set file permissions
Doesn't seem so. You can get the attributes with FTPDirectoryEntryAttributes(), but not set them. Yet another enhancement we can hope for when the FTP lib gets updated.
There's a request about it from 2008
https://www.purebasic.fr/english/viewtopic.php?p=254202
There's a request about it from 2008
Re: ftp, set file permissions
Thanks Quin... If there's a request from 16 years ago, I don't think I'll hold on to hope.
Re: ftp, set file permissions
You can use my libcurl.pbi and use #CURLOPT_QUOTE with "chmod 644 file"
https://curl.se/libcurl/c/CURLOPT_QUOTE.html
https://curl.se/libcurl/c/CURLOPT_QUOTE.html
Re: ftp, set file permissions
Thanks! I'll have a go with that.
cheers!
cheers!

