moved function remove_unlisted_files from intranator/generate to libi2ncommon because...
[libi2ncommon] / src / filefunc.hxx
index 8ea0e1b..6bab70b 100644 (file)
@@ -26,6 +26,7 @@ on this file might be covered by the GNU General Public License.
 #define __FILEFUNC_HXX
 
 #include "userfunc.hpp"
+#include <set>
 
 namespace I2n
 {
@@ -186,6 +187,13 @@ bool chdir(const std::string &path, std::string *error=NULL);
 
 mode_t umask(mode_t mask);
 
+
+/*
+** more specialized tool function(s)
+*/
+bool remove_unlisted_files(const std::string &directory, const std::set<std::string> &keep_files,
+                                            const std::string &prefix="");
+
 }
 
 #endif