Changeset 297 for trunk/lib


Ignore:
Timestamp:
May 8, 2007, 10:07:38 PM (14 years ago)
Author:
Peter Johansson
Message:

added some empty index.html fixes #171

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r294 r297  
    126126  }
    127127
     128
     129  void touch(std::string str)
     130  {
     131    if (!node_exist(str)) {
     132      std::ofstream os(str.c_str());
     133      os.close();
     134    }
     135  }
     136
    128137  time_t str2time(const std::string& str)
    129138  {
  • trunk/lib/utility.h

    r294 r297  
    127127  ///
    128128  time_t str2time(const std::string&);
     129
     130  ///
     131  /// If file does not exist create empty file.
     132  ///
     133  void touch(std::string);
    129134
    130135  ///
Note: See TracChangeset for help on using the changeset viewer.