25 lines
463 B
C++
25 lines
463 B
C++
#include <filesystem>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <stdio.h>
|
|
|
|
using namespace std;
|
|
using namespace std::filesystem;
|
|
|
|
const path PACMAN_HOOKS = "/etc/pacman.d/hooks";
|
|
|
|
//
|
|
// main is where all program execution starts
|
|
//
|
|
//
|
|
int main(int argc, char **argv) {
|
|
|
|
if (!exists(PACMAN_HOOKS)) {
|
|
create_directory(PACMAN_HOOKS);
|
|
cout << "Directory created: " << PACMAN_HOOKS << endl;
|
|
return 0;
|
|
}
|
|
|
|
printf("Hello there.\n");
|
|
return 0;
|
|
}
|