LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check if file or folder exists returns false when file is there

 Hello I am using LabVIEW ftp pushes to send files to another network location.  I use the check if file or folder exists to ensure that the file was sent properly.  Even when the file is in fact sent to the correct location this vi will always return false.  This is LabVIEW version 8.2

0 Kudos
Message 1 of 5
(3,595 Views)

Can you attach your code?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 2 of 5
(3,581 Views)

Doesn't Check if File or Folder Exists only work on the local machine?  It wants a Path input, so if your file is "somewhere else", this VI is unlikely to find it, hence will return False.  How are you doing the FTP?  There does seem to be a VI called FTP Get Path Info that might work for you (is that what you're using?).

0 Kudos
Message 3 of 5
(3,556 Views)

@BOB Schor wrote:

Doesn't Check if File or Folder Exists only work on the local machine?  It wants a Path input, so if your file is "somewhere else", this VI is unlikely to find it, hence will return False.  How are you doing the FTP?  There does seem to be a VI called FTP Get Path Info that might work for you (is that what you're using?).


It depends what you mean by "local machine."  The file can be on a network drive and it will work just fine.  I don't know about FTP though.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 4 of 5
(3,532 Views)

Hi,

 

Have you checked what the VI returns for other known files on your network location? If the VI works correctly for other files, you could try adding a delay between moving the file and checking for the file. If you are unable to return true for known good files, you could try double checking the path you are looking for the files.

 

If you are still having trouble, could you post your code, or the relevant part of it? Are you getting an error out of the VI?

 

Hope this helps,

Luke B.

0 Kudos
Message 5 of 5
(3,512 Views)