www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: sftp - file check if it exists

Re: sftp - file check if it exists

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 24 Jul 2009 23:53:57 +0200 (CEST)

On Fri, 24 Jul 2009, royconejo wrote:

Please don't top-post and please trim your quotes.

> I mean.. I'd like to know if stat() or open() failed because (let apart
> connection errors) *simply the file does not exist*. Given that those
> functions return the same connection errors and not a simple (for example)
> "LIBSSH2_ERROR_FILE" Is there any way to know if they failed simply because
> the file is not there?

Doesn't libssh2_sftp_last_error() provide that info?

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-24

the libssh2 team