Subject: FTP FileExists method always returns true on VMS
Date: 2011-05-13 07:15:03
From: David Rabjohns
Source: ftp-fileexists-method-always-returns-true-vms
----------------------------------------------------------------------
$0
$0Hi,
The following code always returns true when connecting to a VMS host, even though the file does not exist (I'm using a GUID as the filename to ensure it doesn't exist). I am using the latest 3.5 release.
Can you advise if this is a bug?
Thanks
<TestMethod()> Public Sub FTP_FileExists() 'ARRANGE Dim client As New ComponentPro.Net.Ftp()
client.Connect(ServerAddress) client.Authenticate(Username, Password)
'ACT
Dim exists = client.FileExists("/" + Guid.NewGuid.ToString) client.Disconnect()
'ASSERT Assert.IsFalse(exists) End Sub$0
$0
----------------------------------------------------------------------
Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.
Back to ComponentPro Q&A Forum Index