Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.4k views
in .NET FTP by
Hello,

if i try to use the UnixParser i get an error ("Cant convert into DateTime...").
Raw Data is like this:
drwxr-xr-x   25 1154     nogroup      4096 Jan  4 12:14 .
drwxr-xr-x   25 1154     nogroup      4096 Jan  4 12:14 ..
-rw-------    1 1154     nogroup         8 Aug  7  2003 File1
-rwxr-xr-x    1 1154     nogroup     38912 Sep 12 19:38 File2
drwxrwxrwx    2 1154     nogroup      4096 Feb  9  2004 Directory

Maybe its interessting for you to know this :). It connects to a PureFTPd Server.

Greetings,
Keeper

4 Answers

0 votes
by
Hello again,

i tried to Debug this, and the error occours when i try to parse the following line:
-rwxr-xr-x    1 1154     nogroup     61523 May 30  2003 OLDENGL.zip

The line looks normal to me...
BTW: This Dll is great!!!

Greetings,
Keeper
0 votes
by (162k points)
We are having a look at this one .... thanks for the info

Hello again,

i tried to Debug this, and the error occours when i try to parse the following line:
-rwxr-xr-x    1 1154     nogroup     61523 May 30  2003 OLDENGL.zip

The line looks normal to me...
BTW: This Dll is great!!!

Greetings,
Keeper
0 votes
by
Hi,

I've been playing around with the source code, and I think I've found the source of this bug (I happened to have the same problem). My computer has the french version of Windows 2000 installed. The UnixParserFile tries to parse the dates according to
CultureInfo.CurrentCulture
(in French then), though all the FTP servers I know give dates in the English format (there's no such month as "May" in french, it rather is "Mai). Replacing the occurences of
CultureInfo.CurrentCulture
with
CultureInfo.InvariantCulture
solved the problem.

Hope it helps.

Mac
0 votes
by (162k points)
Thanks for posting.

In the next version, which we hope to release in a few days, we will be using the InvariantCulture, and also permitting users to set the culture for parsing themselves.

Hi,

I've been playing around with the source code, and I think I've found the source of this bug (I happened to have the same problem). My computer has the french version of Windows 2000 installed. The UnixParserFile tries to parse the dates according to
CultureInfo.CurrentCulture
(in French then), though all the FTP servers I know give dates in the English format (there's no such month as "May" in french, it rather is "Mai). Replacing the occurences of
CultureInfo.CurrentCulture
with
CultureInfo.InvariantCulture
solved the problem.

Hope it helps.

Mac

Categories

...