Skip to content

Commit

Permalink
Creador de
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorH028 committed Sep 16, 2024
1 parent dd9d7e5 commit d288d7e
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions include/below_zero/deb/cre-deb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,39 @@
#define BELOW_ZERO_DEB

#include <boost/filesystem.hpp>
#include <boost/filesystem/directory.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/json.hpp>
#include <cstdlib>
#include <iostream>
#include <list>
#include <string>

class Deb{
public:
namespace fs = boost::filesystem;

class CreateDeb{
std::list<std::string> files_conf {"control","src","doc","config"};
std::list<std::string> control_conf {};
public:
CreateDeb(fs::path proyec);
// ~CreateDeb();
};

CreateDeb::CreateDeb(fs::path proyec){
if(!fs::exists(proyec)){
std::cerr << "File no found :" + proyec.string() << std::endl;
exit(1);
}
// Crear directoriios de trabajo
for(std::string files : files_conf){
fs::create_directory(proyec / files);
};

// control config

for(fs::directory_entry &dir_entry : fs::directory_iterator{proyec}){

};
}

#endif // !BELOW_ZERO_DEB

0 comments on commit d288d7e

Please sign in to comment.