cctools
create_dir.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef CREATE_DIR_H
9 #define CREATE_DIR_H
10 
13 #include <sys/stat.h>
14 
21 int create_dir (const char *path, mode_t mode);
22 
29 int create_dir_parents (const char *path, mode_t mode);
30 
31 #endif
32 
33 /* vim: set noexpandtab tabstop=4: */
int create_dir(const char *path, mode_t mode)
Create a new directory recursively.
int create_dir_parents(const char *path, mode_t mode)
Create needed parent directories of a file or directory.