|
a/src/utils/wipedir.h |
|
b/src/utils/wipedir.h |
|
... |
|
... |
19 |
/* @(#$Id: wipedir.h,v 1.2 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: wipedir.h,v 1.2 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
|
22 |
|
23 |
/**
|
23 |
/**
|
24 |
* Remove all files inside directory (not recursive).
|
24 |
* Remove all files inside directory.
|
25 |
* @return 0 if ok, count of remaining entries (ie: subdirs), or -1 for error
|
25 |
* @return 0 if ok, count of remaining entries (ie: subdirs), or -1 for error
|
26 |
*/
|
26 |
*/
|
27 |
int wipedir(const std::string& dirname);
|
27 |
int wipedir(const std::string& dirname, bool topalso = 0, bool recurse = 0);
|
28 |
|
28 |
|
29 |
#endif /* _FILEUT_H_INCLUDED_ */
|
29 |
#endif /* _FILEUT_H_INCLUDED_ */
|