Changeset 343 for trunk/lib/Directory.cc
- Timestamp:
- May 19, 2007, 3:58:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r313 r343 54 54 : Node(level,path,output) 55 55 { 56 output_dir_=local_path(); 57 if (!output_dir_.empty()) 58 output_dir_+="/"; 59 56 60 using namespace std; 57 61 DIR* directory=opendir(path.c_str()); // C API from dirent.h … … 106 110 } 107 111 112 113 std::string Directory::node_type(void) const 114 { 115 return std::string("file"); 116 } 117 118 119 std::string Directory::output_path(void) const 120 { 121 return output_dir()+"index.html"; 122 } 123 108 124 const Stats& Directory::parse(const bool verbose) 109 125 { … … 114 130 stats_ += (*i)->parse(verbose); 115 131 return stats_; 116 }117 118 119 const std::string Directory::node_type(void) const120 {121 return std::string("directory");122 132 } 123 133
Note: See TracChangeset
for help on using the changeset viewer.