| Class SMB::File |
|
Represents a file on the smb network. Works like a regular file as far as possible.
| see: | documentation for IO class for description of methods. |
| Methods |
| Classes and Modules |
| Included modules |
| Public Class methods |
| open(url, mode = "r") {|file| ...} |
| new(url, mode = "r") |
| foreach(url, sep = $/) {|line| ...} |
| rename(oldurl, newurl) |
Same as SMB::rename
| dirname(url) |
| delete(url) |
| stat(url) |
Same as SMB::stat
| Public Instance methods |
| url() |
| returns: | the file's url |
| seek(offset, whence = IO::SEEK_SET) |
| getc() |
| putc() |
| gets(sep = $/) |
| write(str) |
| puts(*objs) |
| printf(fmt, *args) |
| print(*objs) |
| readline(sep = $/) |
| readlines(sep = $/) |
| readchar() |
| read(bytes = 0) |
Reads the entire file, by default
| close() |
| closed?() |
| rewind() |
| pos() |
| pos=(offset) |
| ungetc(chr) |
| clone() |
| lineno() |
| lineno=(lineno) |
| sync() |
| sync=(value) |
| each_byte() {|byte| ...} |
| each_line(sep = $/) {|line| ...} |
| <<(obj) |
| eof?() |
| stat() |