Commit 78749e24 authored by ben's avatar ben

Added some documentation and examples


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@233 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 74956cfe
......@@ -10,10 +10,20 @@
"""Wrapper class around a real path like "/usr/bin/env"
The RPath and associated classes make some function calls more
convenient (e.g. RPath.getperms()) and also make working with files on
The RPath (short for Remote Path) and associated classes make some
function calls more convenient and also make working with files on
remote systems transparent.
For instance, suppose
rp = RPath(connection_object, "/usr/bin/env")
Then rp.getperms() returns the permissions of that file, and
rp.delete() deletes that file. Both of these will work the same even
if "usr/bin/env" is on a different computer. So many rdiff-backup
functions use rpaths so they don't have to know whether the files they
are dealing with are local or remote.
"""
import os, stat, re, sys, shutil, gzip, socket
......
......@@ -10,10 +10,20 @@
"""Wrapper class around a real path like "/usr/bin/env"
The RPath and associated classes make some function calls more
convenient (e.g. RPath.getperms()) and also make working with files on
The RPath (short for Remote Path) and associated classes make some
function calls more convenient and also make working with files on
remote systems transparent.
For instance, suppose
rp = RPath(connection_object, "/usr/bin/env")
Then rp.getperms() returns the permissions of that file, and
rp.delete() deletes that file. Both of these will work the same even
if "usr/bin/env" is on a different computer. So many rdiff-backup
functions use rpaths so they don't have to know whether the files they
are dealing with are local or remote.
"""
import os, stat, re, sys, shutil, gzip, socket
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment