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