1Net::SSH2::File(3)    User Contributed Perl Documentation   Net::SSH2::File(3)
2
3
4

NAME

6       Net::SSH2::File - SSH 2 SFTP file object
7

DESCRIPTION

9       An SFTP file object is created by the Net::SSH2::SFTP "open" method.
10
11       read ( buffer, size )
12
13       Read size bytes from the file into a given buffer.  Returns number of
14       bytes read, or undef on failure.
15
16       write ( buffer )
17
18       Write buffer to the remote file; returns bytes written, undef on fail‐
19       ure.
20
21       stat
22
23       Returns file attributes; see Net::SSH2::SFTP::stat.
24
25       setstat ( key, value... )
26
27       Sets file attributes; see Net::SSH2::SFTP::setstat.
28
29       seek ( offset )
30
31       Set the file pointer offset.
32
33       tell
34
35       Returns the current file pointer offset.
36

SEE ALSO

38       Net::SSH2::SFTP.
39

AUTHOR

41       David B. Robins, <dbrobins@cpan.org>
42
44       Copyright (C) 2005, 2006 by David B. Robins; all rights reserved.
45
46       This library is free software; you can redistribute it and/or modify it
47       under the same terms as Perl itself, either Perl version 5.8.0 or, at
48       your option, any later version of Perl 5 you may have available.
49
50
51
52perl v5.8.8                       2007-02-24                Net::SSH2::File(3)
Impressum