blob: 18ba6252c94a62997a1aba43c09505c5603edd8b (
plain)
1 ////////////////////////////////////////////////////////////////////////
2 // FILE: fileutils.h
3 // AUTHOR: Johannes Winkelmann, jw@tks6.net
4 // COPYRIGHT: (c) 2002-2005 by Johannes Winkelmann
5 // ---------------------------------------------------------------------
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 ////////////////////////////////////////////////////////////////////////
11
12 #ifndef _FILEUTILS_H_
13 #define _FILEUTILS_H_
14
15 #include <string>
16 #include <list>
17
18 class FileUtils
19 {
20 public:
21 static bool fmd5sum(const std::string& fileName, unsigned char* result);
22
23 static int deltree(const char* directory);
24 static int mktree(const std::string& directory);
25
26 static void listFiles(const std::string& target);
27 static void listFilesRec(const std::string& base,
28 const std::string& offset,
29 std::list<std::string>& files);
30 };
31
32 #endif /* _FILEUTILS_H_ */
|