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