windows changes
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
extern "C" {
|
||||
#include "gtk-imports.h"
|
||||
}
|
||||
|
||||
#include <list>
|
||||
#include <filesystem>
|
||||
|
||||
std::string InfoOverMe::containingFolder()
|
||||
{
|
||||
@@ -25,8 +27,12 @@ std::string InfoOverMe::containingFolder()
|
||||
path[len] = '\0';
|
||||
|
||||
std::string p(path);
|
||||
std::cout << p << std::endl;
|
||||
return p;
|
||||
std::filesystem::path pp(p);
|
||||
if (std::filesystem::is_regular_file(pp)) {
|
||||
pp = pp.parent_path();
|
||||
}
|
||||
|
||||
return pp.string();
|
||||
}
|
||||
|
||||
std::string InfoOverMe::myHostname()
|
||||
|
||||
Reference in New Issue
Block a user