Package duplicity :: Module path :: Class DupPath
[hide private]
[frames] | no frames]

Class DupPath

source code


Represent duplicity data files

Based on the file name, files that are compressed or encrypted will have different open() methods.

Instance Methods [hide private]
 
__init__(self, base, index=(), parseresults=None)
DupPath initializer
source code
 
filtered_open(self, mode="rb", gpg_profile=None)
Return fileobj with appropriate encryption/compression
source code

Inherited from Path: __repr__, append, chmod, compare_recursive, delete, deltree, get_canonical, get_filename, get_parent_dir, get_temp_in_same_dir, isemptydir, listdir, makedev, mkdir, move, new_index, open, patch_with_attribs, quote, rename, rename_index, setdata, touch, unquote, writefileobj

Inherited from ROPath: __eq__, __ne__, blank, compare_data, compare_verbose, copy, copy_attribs, exists, get_data, get_relative_path, get_ropath, get_tarinfo, getdevloc, getmtime, getperms, getsize, init_from_tarinfo, isdev, isdir, isfifo, isreg, issock, issym, perms_equal, set_from_stat, setfileobj

Class Variables [hide private]

Inherited from Path: regex_chars_to_quote

Instance Variables [hide private]

Inherited from ROPath: stat

Method Details [hide private]

__init__(self, base, index=(), parseresults=None)
(Constructor)

source code 

DupPath initializer

The actual filename (no directory) must be the single element of the index, unless parseresults is given.

Overrides: ROPath.__init__

filtered_open(self, mode="rb", gpg_profile=None)

source code 

Return fileobj with appropriate encryption/compression

If encryption is specified but no gpg_profile, use globals.default_profile.