|
|
|
@ -1,4 +1,5 @@ |
|
|
|
#include "sourcefile.h" |
|
|
|
#include "sourcefile.h" |
|
|
|
|
|
|
|
#include "singletons.h" |
|
|
|
#include <fstream> |
|
|
|
#include <fstream> |
|
|
|
#include <sstream> |
|
|
|
#include <sstream> |
|
|
|
|
|
|
|
|
|
|
|
@ -28,6 +29,7 @@ std::string juci::filesystem::get_home_folder() { |
|
|
|
if((status.permissions() & 0222)>=2) { |
|
|
|
if((status.permissions() & 0222)>=2) { |
|
|
|
return home; |
|
|
|
return home; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
Singleton::terminal()->print("Invalid permissions. Cannot write in " + home + "\n"); |
|
|
|
throw new std::exception; |
|
|
|
throw new std::exception; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|