X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fdirectory_tree.h;h=bd55d2dfa9340e3161401bf8fe206ea58d1aa318;hb=64d40788e8698d4f774b2e28442d5ce8a22699ec;hp=9c89ba432c98d2e406d1b74f9248b9e384a64c93;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/library/filesystem/directory_tree.h b/nucleus/library/filesystem/directory_tree.h index 9c89ba43..bd55d2df 100644 --- a/nucleus/library/filesystem/directory_tree.h +++ b/nucleus/library/filesystem/directory_tree.h @@ -104,6 +104,9 @@ public: removed in the filesystem. if the item is still really there, then the next rescan will put it back into the tree. */ + basis::outcome make_directories(const basis::astring new_root); + //!< creates all of the directories in this object, but start at the "new_root". + static bool compare_trees(const directory_tree &source, const directory_tree &target, filename_list &differences, file_info::file_similarity how_to_compare); @@ -171,7 +174,7 @@ public: static filename_list *access(dir_tree_iterator &scanning); //!< more dangerous operation that lets the actual list be manipulated. - /*!< NIL is returned if there was a problem accessing the tree + /*!< NULL_POINTER is returned if there was a problem accessing the tree at the iterator position. */ static bool depth(dir_tree_iterator &scanning, int &depth); @@ -198,7 +201,7 @@ private: static filename_tree *goto_current(dir_tree_iterator &scanning); //!< goes to the current node for "scanning" and returns the tree there. - /*!< if there are no nodes left, NIL is returned. */ + /*!< if there are no nodes left, NULL_POINTER is returned. */ void traverse(const basis::astring &path, const char *pattern, filename_tree &add_to);