Re: Downloading files via FTP

2018-04-23 Thread Koen Van Hooreweghe via 4D_Tech
Hi Keisuke, I think Stephanie Tirtiat did a very nice job creating the bug report following my TAOW case and made the regression part pretty clear (see details below). But the most frustrating part is that it took 4D engineering more than 9 months to provide a work around. Bug report was

Re: Downloading files via FTP

2018-04-21 Thread Keisuke Miyako via 4D_Tech
I just wanted to point out that one can not expect a fix for a "bug" that is classified as standard behaviour. (I am not in charge of bug classification) I would encourage you to make your case for regression on TAOW. I did not see "use an old build" being suggested as a workaround, which might

Re: Downloading files via FTP

2018-04-21 Thread Koen Van Hooreweghe via 4D_Tech
Hi Keisuke, Nope, no different cases. It is that very bug report ACI0096897. This bug report was created following my TAOW report. The issue was confirmed to be reproduced with v15.4 and it was OK with v15.3. Precisions: on MaxOSX 10.12.4 I get the error with both 15.3 (public and HF1) and

Re: Downloading files via FTP

2018-04-21 Thread Keisuke Miyako via 4D_Tech
it is possible that we are referring to different cases. ACI0096897, which has been classified as "standard behaviour", is about Internet Commands issuing a specific FTP command, and a specific FTP server responding to that command with an error . nothing has changed in Internet Commands, it was

Re: Downloading files via FTP

2018-04-21 Thread Chip Scheide via 4D_Tech
do you need time stamps? if it makes the process simpler could you use an MD5, or other hash to compare the files. > In my project this now works just fine (so far ... limited testing ...) - I > get the timestamps, which I need so that the files in the folder can be > compared against files

Re: Downloading files via FTP

2018-04-21 Thread Pat Bensky via 4D_Tech
In my project this now works just fine (so far ... limited testing ...) - I get the timestamps, which I need so that the files in the folder can be compared against files previously downloaded. In this particular project, the files are all images. I wonder if that makes a difference? Pat On 21

Re: Downloading files via FTP

2018-04-20 Thread Koen Van Hooreweghe via 4D_Tech
Hi Keisuke, If something is working fine (for years and different 4D versions) and it doesn’t work any more in a new version (while the old version is still OK). Isn’t that called a bug or regression? Unfortunately it took engineering more then 9 months to provide a valid work around.

Re: Downloading files via FTP

2018-04-20 Thread Keisuke Miyako via 4D_Tech
my understanding is that it is "standard behaviour", in that the behaviour is expected according to how 4D Internet Commands was designed. evidently, without the optional output parameter, FTP_GetDirList sends the FTP command "LIST" to the server. with the optional output parameter to get

Re: Downloading files via FTP

2018-04-20 Thread Dave Nasralla via 4D_Tech
Hi Pat, I would try a regular ftp client and see what paths work for it (and that it does work), and then compare (I like Fetch). dave On Fri, Apr 20, 2018 at 6:39 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > Using v16.3 32-bit and 64-bit > > I'm trying to download some files via

Re: Downloading files via FTP

2018-04-20 Thread Chip Scheide via 4D_Tech
Pat, a few things: - posix format your mac file path that might be the (or part) of the issue - check that a forward slash is the correct delimiter for the source path (PCs use backslash '\') - I would examine the source path and look for a colon (':' or '\') as the directory marker. -- if you

Re: Downloading files via FTP

2018-04-20 Thread Koen Van Hooreweghe via 4D_Tech
Hi Pat, Could you try to navigate to the right directory on the ftp server and then call FTP_Receive with only the file name in the filepath. Something like: $hostpath without trailing /, like public_html/Anderson/uploads FTP_ChangeDir(vFTP_ID;$hostpath) FTP_Receive(vTTP_ID;

Re: Downloading files via FTP

2018-04-20 Thread Pat Bensky via 4D_Tech
Thanks Koen ... I tried that, it didn't make any difference ): Pat On 20 April 2018 at 13:48, Koen Van Hooreweghe via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Pat, > > This might be related to a bug I discovered about a year ago. Started from > v15.4 and also happens in v16. > > No fix yet,

Re: Downloading files via FTP

2018-04-20 Thread Ed Glassgow via 4D_Tech
Hi Pat, I have one that uses FTP extensively and it's pretty solid once you get it configured correctly. The one thing that I don't see in your code below is an FTP_Login, which is required to establish the connection as it gives you the value in the "vFTP-ID" variable that you pass to the

Re: Downloading files via FTP

2018-04-20 Thread Koen Van Hooreweghe via 4D_Tech
Hi Pat, This might be related to a bug I discovered about a year ago. Started from v15.4 and also happens in v16. No fix yet, but the culprit is according to 4D engineering the 7th (times) parameter in thE FTP_GetDirList command. If you don’t need the modification times, leave out this

Downloading files via FTP

2018-04-20 Thread Pat Bensky via 4D_Tech
Using v16.3 32-bit and 64-bit I'm trying to download some files via FTP. I get a list of the files in the specified directory: $error:=*FTP_GetDirList *(vFTP_ID;$hostpath;$atDldFileNames;$aiDldFileSizes; $aiDldFileKinds;$adDldFileDates;$aiDldFileTimes) (all arrays have been previously declared).