Open file on remote linux server
nyamatongwe+thunder at gmail.com
Thu Sep 24 02:12:59 CEST 2009
> Hi I'm looking to do something like this
> f = f.openfileobj(remotefileloc, localfilelikeobj)
> my remote files are on a solaris box that i can access using ssh (could
> prehap request othe protocols if necessary)
You could look into GIO which is a virtual file system API used in
GTK+. I was a bit put off by it (necessarily) exposing the asynchronous
nature of remote file operations. Its fun to write a small amount of
asynchronous file I/O code but ensuring that all of your code handles
all the potential problems with remote connections is tedious.
Before committing to this, you should double check that these are the
currently supported APIs. There was an earlier API GnomeVFS that has
been deprecated for several years now and I don't follow this area closely.
More information about the Python-list