FtpDLX DirItems parsing (wodFtpDLX / wodFtpDLX.NET)

by dfb @, (29 days ago)

We've recently encountered a customer's SFTP server which is returning a different directory format, and WodFtpDLX.NET is having problems parsing it.

The directory listing looks like this:

-rw-r----- 0 0 476 Wed, 08 Jan 2025 06:01:01 GMT Filename1234.txt

Note the expanded date, including the day and timezone... it's a bit different to some others I've seen.

I can't share all the server details, but it appears to be hosted by Azure Blob storage - https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-sup...

Other SFTP clients such as Filezilla seem to be able to parse the directory correctly. Any thoughts/workarounds?

FtpDLX DirItems parsing

by Jasmine, (29 days ago) @ dfb

Hi,

what version of wodFtpDLX.NET are you using? This sounds very familiar, and I believe we did some debugging on this issue recently.

Regards,
Jasmine

FtpDLX DirItems parsing

by dfb @, (28 days ago) @ Jasmine

Hi Jasmine

We've seen this while testing with 1.9.7.290, and also 1.9.6.282

Thanks

FtpDLX DirItems parsing

by Jasmine, (27 days ago) @ Jasmine

Hi,
any chance we can connect there?

Or, can you issue ListDir and then in ListItemsEvent capture result and send it to us so we can manually feed the parser with exactly what's returned in ListItemEvent?

Thanks,
Jasmine

FtpDLX DirItems parsing

by dfb @, (27 days ago) @ Jasmine

Unfortunately it's not our server so I can't get you access.

I haven't been able to check the ListItemEvent yet, as our current code doesn't use the events, but I do have some output from the DirItem.FullLine property.

-rw-r----- 0 0 2358 Thu, 09 Jan 2025 05:30:20 GMT ENR6112P_9377780031014_DESADV_100000114_20250109053020.edi
-rw-r----- 0 0 1218 Thu, 09 Jan 2025 22:16:56 GMT ENR6112P_9377780031014_DESADV_100000115_20250109221654.edi
-rw-r----- 0 0 1096 Fri, 17 Jan 2025 10:19:29 GMT ENR6112P_9377780031014_DESADV_100000116_20250117101928.edi
-rw-r----- 0 0 1975 Wed, 22 Jan 2025 04:00:27 GMT ENR6112P_9377780031014_DESADV_100000117_20250122040026.edi

Hopefully this comes through with all whitespace intact. If not maybe I can email it to you?

I suspect other Azure Blob SFTP sites will also use this format.

FtpDLX DirItems parsing

by dfb @, (27 days ago) @ dfb

It's reformatted the whitespace, so I'll email you.

FtpDLX DirItems parsing

by Jasmine, (25 days ago) @ dfb

Hi,

we have fixed it. There was already Azure parser amongst DirItems parsers, but there was a bug in it with date handling.

Anyway, please request update and try out latest version. If it fails, please specify
ftp.DirFormat = WeOnlyDo.Client.DirFormats.Azure;
and try again.

Let me know if it works ok now!
Regards,
Jasmine

FtpDLX DirItems parsing

by dfb @, (23 days ago) @ Jasmine

Thank you Jasmine - we're still testing, but yes this appears to fix the issue.