Disk ARchive
2.4.5
|
the data_dir class inherits from data_tree and holds the directory tree's parent relationship More...
#include <data_tree.hpp>
Inherits libdar::data_tree.
Public Member Functions | |
data_dir (const std::string &name) | |
data_dir (generic_file &f, unsigned char db_version) | |
data_dir (const data_dir &ref) | |
data_dir (const data_tree &ref) | |
void | dump (generic_file &f) const |
void | add (const inode *entry, const archive_num &archive) |
void | add (const detruit *entry, const archive_num &archive) |
const data_tree * | read_child (const std::string &name) const |
void | read_all_children (std::vector< std::string > &fils) const |
virtual void | finalize_except_self (const archive_num &archive, const infinint &deleted_date, const archive_num &ignore_archives_greater_or_equal) |
bool | check_order (user_interaction &dialog, const path ¤t_path, bool &initial_warn) const |
check date order between archives withing the database ; throw Erange if problem found with date order | |
void | finalize (const archive_num &archive, const infinint &deleted_date, const archive_num &ignore_archives_greater_or_equal) |
add deleted entry if no object of the current archive exist and the entry of the previous archive is already present. | |
bool | remove_all_from (const archive_num &archive_to_remove, const archive_num &last_archive) |
return true if the corresponding file is no more located in any archive (thus, the object is no more usefull in the base) | |
void | show (user_interaction &dialog, archive_num num, std::string marge="") const |
list the most recent files owned by that archive (or by any archive if num == 0) | |
void | apply_permutation (archive_num src, archive_num dst) |
void | skip_out (archive_num num) |
decrement archive numbers above num | |
void | compute_most_recent_stats (std::vector< infinint > &data, std::vector< infinint > &ea, std::vector< infinint > &total_data, std::vector< infinint > &total_ea) const |
char | obj_signature () const |
Static Public Member Functions | |
static char | signature () |
the data_dir class inherits from data_tree and holds the directory tree's parent relationship
Definition at line 159 of file src/libdar/data_tree.hpp.
void libdar::data_dir::finalize | ( | const archive_num & | archive, |
const infinint & | deleted_date, | ||
const archive_num & | ignore_archive_greater_or_equal | ||
) | [virtual] |
add deleted entry if no object of the current archive exist and the entry of the previous archive is already present.
[in] | archive | is the number of the archive to finalize |
[in] | deleted_date | date of deletion to use for inode removal when no information can be grabbed from the archive (this date is take from the parent dir last modification date) |
[in] | ignore_archive_greater_or_equal | ignore archives which number is greater or equal "ingore_archive_greater_or_equal" as if they were not present in the database. If set to zero, no archive is ignored. |
Reimplemented from libdar::data_tree.