Changeset 482 for trunk/lib/utility.h


Ignore:
Timestamp:
Oct 13, 2007, 3:40:38 AM (14 years ago)
Author:
Peter Johansson
Message:

fixes #79 and #5. Only updating changed files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.h

    r465 r482  
    6161  void copy_file(const std::string& source, const std::string& target);
    6262
     63  /**
     64     Parsing out the directory of path that is everything prior the
     65     last '/' with the eception if \a path ends with '/' in which case
     66     everything prior the second last '/' is returned.
     67
     68     \return directory of path.
     69   */
     70  std::string directory_name(std::string path);
     71
    6372  ///
    6473  /// @return everything after last '/'
     
    113122  /// mkdir'.
    114123  ///
    115   inline int mkdir(const std::string& dir) { return ::mkdir(dir.c_str(),0777); }
     124  void mkdir(const std::string& dir);
    116125
    117126  ///
Note: See TracChangeset for help on using the changeset viewer.