FTP woes
Das Goravani
goravanis at gmail.com
Fri Apr 29 18:42:54 UTC 2022
I figured that one out as well.
You have to use // as the root of the users directory.
Then it works.
If the users folder is called ftp and has within it a folder called files then you use
//files
To get a listing of that directory
And
//files/Subfolder
To get a listing of the subfolder within files
> On Apr 29, 2022, at 1:57 PM, Das Goravani <goravanis at gmail.com> wrote:
>
> Well now I’ve got a problem.
> I created a sub folder in the users directory.
> It created it OK.
> I can switch to it and get a listing (empty at this point)
> But when I try to upload a file to that sub folder it won’t do it.
> It says 553 bad file name again.
> But it’s the same file I already uploaded to the main folder.
> Just trying to upload it to a subfolder now.
> In path I have tried putting the users folder followed by the sub folder. I have tried just putting the sub folder. Nothing works.
>
> Anyone know why this is, or what I can do to upload to a sub folder?
>
> And when I try to get a listing of files in that sub folder I get only the sub folder name itself, like it is doing a listing of the parent directory
>
> All of this is being done with the Omnis FTP Sample Library.
>
> 10.2 31315 Mac
>
>> On Apr 29, 2022, at 1:37 PM, Das Goravani <goravanis at gmail.com> wrote:
>>
>>
>> NEVER MIND I got it to work.
>> The trick is to reduce the path to just the last directory on it, in my case.
>> Apparently it remembers the root directory of the user you pass in, and only needs the folders BEYOND that point in the path field.
>> And when you PUT a file the path has to include the file name you want it to have, maybe the same name as it has now.
>> Then it works.
>>
>>> On Apr 29, 2022, at 1:23 PM, Das Goravani <goravanis at gmail.com> wrote:
>>>
>>>
>>> Hello,
>>>
>>> I’m playing with the sample library for doing FTP with the worker object.
>>>
>>> I have setup vsftpd on my server and made an FTP user with a specific folder.
>>>
>>> Then I try to use the Omnis FTP sample library to view that folder and possibly upload to it.
>>>
>>> When I do the Action List Directory with no path given it works. It shows the users directory in the Results List.
>>>
>>> But when I put in the path to that directory to get a list of files inside it, it doesn’t work. It doesn’t give an error number.
>>>
>>> When I try to upload a file to the users directory it gives error code 553 which translates to "bad file name", but the file is named paypal2.csv, a very small straightforward name.
>>>
>>> What am I doing wrong?
>>>
>>> When I put the credentials into an FTP client app on my Mac it works perfectly. The directory is good. The user is good.
>>>
>>> Does the sample library work? Do you know?
>>>
>>> I want to create a small FTP client app based on the sample library if possible.
>>>
>>> Thanks,
>>>
>>> Das Goravani
>>> North Carolina USA
>>
>
More information about the omnisdev-en
mailing list