Changeset 126 for trunk/lib/utility.cc
- Timestamp:
- Aug 2, 2006, 1:05:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility.cc
r125 r126 31 31 #include <string> 32 32 #include <sys/param.h> 33 #include <sys/stat.h>34 33 #include <unistd.h> 35 34 … … 46 45 std::cerr << "Error: svn blame " << path << std::endl; 47 46 return system_return; 48 }49 50 int createdir(const std::string& dir, bool force)51 {52 struct stat buf;53 if (force && !stat(dir.c_str(),&buf))54 rmdirhier(dir);55 56 return mkdir(dir.c_str(),0777);57 47 } 58 48
Note: See TracChangeset
for help on using the changeset viewer.