diff options
Diffstat (limited to 'include/fstree.h')
-rw-r--r-- | include/fstree.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h index 6a29093..13d4c78 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -229,6 +229,13 @@ void fstree_xattr_deduplicate(fstree_t *fs); */ int fstree_from_file(fstree_t *fs, const char *filename); +/* + Recursively scan a directory and generate a file system tree from it. + + Returns 0 on success, prints errors to stderr. + */ +int fstree_from_dir(fstree_t *fs, const char *path); + /* Lexicographically sort all directory contents. */ void fstree_sort(fstree_t *fs); |