Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.928 Times

Gnome2::VFS 1.061

  Date Added: April 09, 2010  |  Visits: 431

Gnome2::VFS

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



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();.

Requirements: No special requirements
Platforms: Linux
Keyword: Bytes Eq Gnome Vfs Handle Libraries Programming Read Result Unless
Users rating: 0/10

License: Freeware Size: 58.37 KB
USER REVIEWS
More Reviews or Write Review


GNOME2::VFS RELATED
Libraries  -  gnome-vfs-monikers 2.15.3
gnome-vfs-monikers is a Filesystem Abstraction library. Installation: The simplest way to compile this package is: 1. `cd to the directory containing the packages source code and type `./configure to configure the package for your system. If...
368.64 KB  
Libraries  -  gnome-vfs-obexftp 0.4
gnome-vfs-obexftp contains extra packages for extentions to GnomeVFS. Contains an OBEX module, VFS DBUS daemon, modified file module that notifies file modifications over DBUS. Note that if youre not using the standard dbus system bus address,...
655.36 KB  
Libraries  -  gnome-vfs 2.18.1 / 2.19.3
gnome-vfs is a Filesystem Abstraction library. It provides an abstraction layer for the reading, writing and execution of files. It is primarily used by the Nautilus file manager and other GNOME applications. A cause of confusion is the fact...
2.6 MB  
Libraries  -  gnome-vfsmm 2.18.0
gnome-vfsmm are C++ wrappers for gnome-vfs. Any help is welcomed. File bugs with patches (see http://www.gtkmm.org/bugs.shtml for patching procedure), and give suggestions. Installation: The simplest way to compile this package is: 1. `cd...
471.04 KB  
Libraries  -  Java-Gnome 4.0.3
Java-GNOME application is a set of Java bindings for the GNOME and GTK libraries that allow GNOME and GTK applications to be written in Java. The Java-Gnome API has been carefully designed to be easy to use, maintaining a good OO paridigm, yet...
174.08 KB  
Libraries  -  libvte-java 0.12.3
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. libvte-java is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
337.92 KB  
Libraries  -  cairo-java 1.0.8
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. cairo-java is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
358.4 KB  
Libraries  -  libgconf-java 2.12.6
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. Java-GNOME is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
337.92 KB  
Libraries  -  libglade-java 2.12.8
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. Java-GNOME is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
358.4 KB  
Libraries  -  libgnome-java 2.12.7
Java-GNOME is a set of Java bindings for GNOME and GTK libraries, so GNOME applications can be written in Java. Java-GNOME is implemented as a JNI layer that delegates the Java calls out to the underlying C library. Installation: The...
481.28 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB