Changeset 126 for trunk/lib/utility.cc


Ignore:
Timestamp:
Aug 2, 2006, 1:05:52 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Changed createdir to mkdir, removed the ugly force option from the function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r125 r126  
    3131#include <string>
    3232#include <sys/param.h>
    33 #include <sys/stat.h>
    3433#include <unistd.h>
    3534
     
    4645      std::cerr << "Error: svn blame " << path << std::endl;     
    4746    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);
    5747  }
    5848
Note: See TracChangeset for help on using the changeset viewer.