libi2ncommon: (tomj) added daemon handling and recursive_delete()
[libi2ncommon] / src / filefunc.hxx
1 /***************************************************************************
2  *   Copyright (C) 2004 by Gerd v. Egidy                                   *
3  *   info@intra2net.com                                                    *
4  *                                                                         *
5  ***************************************************************************/
6
7 #ifndef __FILEFUNC_HXX
8 #define __FILEFUNC_HXX
9
10 bool file_exists (const std::string &name);
11
12 long fsize (const std::string &name);
13
14 std::string load_file (const std::string &name);
15
16 bool chown(const char* file,const char* owner, const char* group);
17
18 bool recursive_delete(const std::string &path, std::string *error=NULL);
19
20 #endif