root/library/bdm/osutils.h @ 497

Revision 497, 0.9 kB (checked in by vbarta, 15 years ago)

moved cross-platform directory scanning support from tests to core (osutils)

  • Property svn:eol-style set to native
Line 
1//
2// C++ Interface: osutils
3//
4// Description: Agr
5//
6//
7// Author: smidl <smidl@utia.cas.cz>, (C) 2008
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12
13#include "itpp_ext.h"
14
15using namespace std;
16
17/*!
18@brief Function concats name of a directory and file
19*/
20void get_fname ( char* filename, std::string &dirname, std::string &f );
21
22/*!
23@brief Function creates a directory and raises it_error if it is not possible
24
25@param dirname name of the directory to be created
26@param rewrite if true then existence of the directory is not an error
27*/
28void makedir ( string &dirname, bool rewrite = true );
29
30/*! @brief Recursively removes directories and files.
31
32@param path the name (absolute or relative) of the file or directory to
33be removed (must not be empty).
34
35Returns true on success, false when path couldn't be removed because
36it didn't exist, throws an exception otherwise.
37*/
38bool remove_all ( const char *path );
Note: See TracBrowser for help on using the browser.