Page 2 of 2

Re: I can't write files to the specified folders via ftp

Posted: Sat Apr 16, 2022 9:28 pm
by Eugene Lutsenko
It seems to have worked. However, the oFtp:Directory() function does not return folder names, and the oFtp:curDir("messages") function does not allow you to make the current folder "messages"

Re: I can't write files to the specified folders via ftp

Posted: Sun Apr 17, 2022 1:36 am
by Wolfgang Ciriack
Try to use aF := oFtp:Directory( ,"DHS") and see, if the directory "messages" is in array aF.

Re: I can't write files to the specified folders via ftp

Posted: Sun Apr 17, 2022 10:03 am
by Eugene Lutsenko
Wolfgang Ciriack wrote: Sun Apr 17, 2022 1:36 am Try to use aF := oFtp:Directory( ,"DHS") and see, if the directory "messages" is in array aF.
The htdocs directory is visible, but its subdirectories are still not visible

Re: I can't write files to the specified folders via ftp

Posted: Mon Apr 18, 2022 4:01 am
by Wolfgang Ciriack
Use oFtp:Directory( ,"DHS") too, after you set the CurDir to "htdocs".
Is the message folder shown ?

Re: I can't write files to the specified folders via ftp

Posted: Mon Apr 18, 2022 11:22 am
by Eugene Lutsenko
The directory for messages is displayed. You have to scroll very far to see it. Maybe it was displayed before, but I just didn't see it.

At the same time, the message files are recorded not in the message folder, but in the root directory, in which the files should not be recorded.

Re: I can't write files to the specified folders via ftp

Posted: Mon May 02, 2022 12:10 pm
by Eugene Lutsenko
Tom wrote: Thu Apr 14, 2022 6:31 am You always get a response from a FTP server. Look at this. It will tell you why it works sometimes and sometimes not.
I get the answer "True" or "False" about the results of the operation. I use it. But how to get a more detailed result explaining why the result is "False", I do not know. So far I haven't been able to just log into the directory. And sometimes it works (in the Eidos system), and sometimes it doesn't (in the Krypton program). The program text is the same in both cases.