- Timestamp:
- Jan 15, 2006, 1:33:37 AM (17 years ago)
- Location:
- trunk/bin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.cc
r49 r50 73 73 << " -d [--dir] arg : output target directory [svnstat_output]\n" 74 74 << " -f [--force] : remove target directory/file if it exists\n" 75 << " [no force] \n"75 << " [no force]. NOTE recursive delete.\n" 76 76 << " -h [--help] : display this help and exit\n" 77 77 << " -v [--verbose] : explain what is being done\n" -
trunk/bin/rmdirhier.h
r49 r50 25 25 { DirectoryDeleteError(const std::string& s) : DirectoryError(s) {} }; 26 26 27 void rmdirhier( std::string& path);27 void rmdirhier(const std::string& path); 28 28 29 29 }} // of namespace svnstat and namespace theplu -
trunk/bin/svnstat.cc
r49 r50 3 3 #include "Parameter.h" 4 4 #include "Directory.h" 5 #include "rmdirhier.h" 5 6 6 7 #include <stdexcept> … … 48 49 { 49 50 struct stat buf; 50 if (force && !stat(dir.c_str(),&buf)) { 51 std::cerr << "Remove item '" << dir << "'." 52 << std::endl; 53 std::cerr << unlink(dir.c_str()) << std::endl; 54 } 51 if (force && !stat(dir.c_str(),&buf)) 52 theplu::svnstat::rmdirhier(dir); 55 53 56 54 return mkdir(dir.c_str(),0777);
Note: See TracChangeset
for help on using the changeset viewer.