Changeset 666
- Timestamp:
- 10/04/11 08:38:26 (8 months ago)
- Location:
- trunk/sources/common
- Files:
-
- 2 edited
-
include/platform/freebsd/freebsdplatform.h (modified) (1 diff)
-
src/platform/freebsd/freebsdplatform.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/common/include/platform/freebsd/freebsdplatform.h
r642 r666 162 162 bool deleteFile(string path); 163 163 bool deleteFolder(string path, bool force); 164 bool createFolder(string path, bool recursive); 164 165 string getHostByName(string name); 165 166 bool isNumeric(string value); -
trunk/sources/common/src/platform/freebsd/freebsdplatform.cpp
r643 r666 237 237 } 238 238 239 bool createFolder(string path, bool recursive) { 240 string command = format("mkdir %s %s", 241 recursive ? "-p" : "", 242 STR(path)); 243 if (system(STR(command)) != 0) { 244 FATAL("Unable to create folder %s", STR(path)); 245 return false; 246 } 247 248 return true; 249 } 250 239 251 string getHostByName(string name) { 240 252 struct hostent *pHostEnt = gethostbyname(STR(name));
Note: See TracChangeset
for help on using the changeset viewer.
