Changeset 796
- Timestamp:
- Jul 1, 2009, 2:55:02 AM (13 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility.cc
r795 r796 3 3 /* 4 4 Copyright (C) 2006, 2007, 2009 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2008 Peter Johansson5 Copyright (C) 2008, 2009 Peter Johansson 6 6 7 7 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 186 186 187 187 188 void mkdir_p(const std::string& dir) 189 { 190 std::string mother = directory_name(dir); 191 if (!node_exist(mother)) 192 mkdir_p(mother); 193 if (!node_exist(dir)) 194 mkdir(dir); 195 } 196 197 188 198 bool node_exist(const std::string& path) 189 199 { -
trunk/lib/utility.h
r795 r796 7 7 Copyright (C) 2005 Peter Johansson 8 8 Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 9 Copyright (C) 2009 Peter Johansson 9 10 10 11 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 135 136 /// 136 137 void mkdir(const std::string& dir); 138 139 /// 140 /// Create directory \a dir and parents directories if needed. No 141 /// error if \a dir already exists. 142 /// 143 void mkdir_p(const std::string& dir); 137 144 138 145 ///
Note: See TracChangeset
for help on using the changeset viewer.