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

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

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

#11 Post 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"
Attachments
Безымянный5.jpg
Безымянный5.jpg (97.4 KiB) Viewed 3090 times

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

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

#12 Post by Wolfgang Ciriack »

Try to use aF := oFtp:Directory( ,"DHS") and see, if the directory "messages" is in array aF.
_______________________
Best Regards
Wolfgang

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

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

#13 Post 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
Attachments
Безымянный7.jpg
Безымянный7.jpg (96.2 KiB) Viewed 3083 times
Безымянный6.jpg
Безымянный6.jpg (132.54 KiB) Viewed 3084 times

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

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

#14 Post by Wolfgang Ciriack »

Use oFtp:Directory( ,"DHS") too, after you set the CurDir to "htdocs".
Is the message folder shown ?
_______________________
Best Regards
Wolfgang

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

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

#15 Post 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.
Attachments
Безымянный.jpg
Безымянный.jpg (30.81 KiB) Viewed 3069 times
Безымянный.jpg
Безымянный.jpg (131.59 KiB) Viewed 3071 times

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

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

#16 Post 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.

Post Reply