Back to index

nordugrid-arc-nox  1.1.0~rc6
MkDirRecursive.h
Go to the documentation of this file.
00001 // -*- indent-tabs-mode: nil -*-
00002 
00003 #ifndef __ARC_MKDIRRECURSIVE_H__
00004 #define __ARC_MKDIRRECURSIVE_H__
00005 
00006 #include <string>
00007 
00008 #include <sys/stat.h>
00009 #include <sys/types.h>
00010 
00011 #include <arc/User.h>
00012 
00013 /*
00014    make directory 'path' with all underlying directories (if needed)
00015    down to 'base_path'.
00016  */
00017 int mkdir_recursive(const std::string& base_path, const std::string& path,
00018                     mode_t mode, const Arc::User& user);
00019 
00020 #endif // __ARC_MKDIRRECURSIVE_H__