Gnome2::VFS 1.061
Sponsored Links
Gnome2::VFS 1.061 Ranking & Summary
File size:
0.057 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
910
Date added:
2007-04-27
Publisher:
Torsten Schoenfeld
Gnome2::VFS 1.061 description
Gnome2::VFS is a Perl interface to the 2.x series of the GNOME VFS library.
SYNOPSIS
use Gnome2::VFS;
sub die_already {
my ($action) = @_;
die("An error occured while $action.n");
}
die_already("initializing GNOME VFS") unless (Gnome2::VFS -> init());
my $source = "http://www.perldoc.com/about.html";
my ($result, $handle, $info);
# Open a connection to Perldoc.
($result, $handle) = Gnome2::VFS -> open($source, "read");
die_already("opening connection to $source")
unless ($result eq "ok");
# Get the file information.
($result, $info) = $handle -> get_file_info("default");
die_already("retrieving information about $source")
unless ($result eq "ok");
# Read the content.
my $bytes = $info -> { size };
my $bytes_read = 0;
my $buffer = "";
do {
my ($tmp_buffer, $tmp_bytes_read);
($result, $tmp_bytes_read, $tmp_buffer) =
$handle -> read($bytes - $bytes_read);
$buffer .= $tmp_buffer;
$bytes_read += $tmp_bytes_read;
} while ($result eq "ok" and $bytes_read < $bytes);
die_already("reading $bytes bytes from $source")
unless ($result eq "ok" && $bytes_read == $bytes);
# Close the connection.
$result = $handle -> close();
die_already("closing connection to $source")
unless ($result eq "ok");
# Create and open the target.
my $target = "/tmp/" . $info -> { name };
my $uri = Gnome2::VFS::URI -> new($target);
($result, $handle) = $uri -> create("write", 1, 0644);
die_already("creating $target") unless ($result eq "ok");
# Write to it.
my $bytes_written;
($result, $bytes_written) = $handle -> write($buffer, $bytes);
die_already("writing $bytes bytes to $target")
unless ($result eq "ok" && $bytes_written == $bytes);
# Close the target.
$result = $handle -> close();
die_already("closing $target") unless ($result eq "ok");
Gnome2::VFS -> shutdown();
SYNOPSIS
use Gnome2::VFS;
sub die_already {
my ($action) = @_;
die("An error occured while $action.n");
}
die_already("initializing GNOME VFS") unless (Gnome2::VFS -> init());
my $source = "http://www.perldoc.com/about.html";
my ($result, $handle, $info);
# Open a connection to Perldoc.
($result, $handle) = Gnome2::VFS -> open($source, "read");
die_already("opening connection to $source")
unless ($result eq "ok");
# Get the file information.
($result, $info) = $handle -> get_file_info("default");
die_already("retrieving information about $source")
unless ($result eq "ok");
# Read the content.
my $bytes = $info -> { size };
my $bytes_read = 0;
my $buffer = "";
do {
my ($tmp_buffer, $tmp_bytes_read);
($result, $tmp_bytes_read, $tmp_buffer) =
$handle -> read($bytes - $bytes_read);
$buffer .= $tmp_buffer;
$bytes_read += $tmp_bytes_read;
} while ($result eq "ok" and $bytes_read < $bytes);
die_already("reading $bytes bytes from $source")
unless ($result eq "ok" && $bytes_read == $bytes);
# Close the connection.
$result = $handle -> close();
die_already("closing connection to $source")
unless ($result eq "ok");
# Create and open the target.
my $target = "/tmp/" . $info -> { name };
my $uri = Gnome2::VFS::URI -> new($target);
($result, $handle) = $uri -> create("write", 1, 0644);
die_already("creating $target") unless ($result eq "ok");
# Write to it.
my $bytes_written;
($result, $bytes_written) = $handle -> write($buffer, $bytes);
die_already("writing $bytes bytes to $target")
unless ($result eq "ok" && $bytes_written == $bytes);
# Close the target.
$result = $handle -> close();
die_already("closing $target") unless ($result eq "ok");
Gnome2::VFS -> shutdown();
Gnome2::VFS 1.061 Screenshot
Gnome2::VFS 1.061 Keywords
VFS
GNOME
VFS 1.061
GNOME VFS
vfs library
interface to
Perl Interface
bytes
result
read
eq
handle
unless
Gnome2::VFS
Gnome2VFS
Gnome2::VFS 1.061
Bookmark Gnome2::VFS 1.061
Gnome2::VFS 1.061 Copyright
WareSeeker periodically updates pricing and software information of Gnome2::VFS 1.061 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Gnome2::VFS 1.061 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
gnome-vfsmm are C++ wrappers for gnome-vfs. Free Download
Gnome OSD is a notification system. Free Download
Ruby-GNOME2 is a set of Ruby language bindings for the GNOME 2 development environment. Free Download
GNOME Sudoku is a Sudoku player and generator for the GNOME Desktop. Free Download
Gnome Crystal is a light model visualizer for crystal structures. Free Download
Gnome-Dial is an user-friendly PPP dialer for GNOME 2. Free Download
gnome-vfs-obexftp contains extra packages for extentions to GnomeVFS. Free Download
gnome-vfs is a Filesystem Abstraction library. Free Download
Latest Software
Popular Software
Favourite Software