foxygit / Torlinkc Log in
commits tags

/include/torlinkc/util/open_folder.hpp · 385 B

raw
#pragma once

#include <string>

namespace torlinkc {

// Opens `dir` in the platform file manager (xdg-open/gio on Linux, open on
// macOS). Never throws; false means the caller should tell the user it
// didn't work. Ported from util/openFolder.ts (Windows path dropped per the
// Linux/macOS-first scope decision).
bool openFolder(const std::string& dir);

}  // namespace torlinkc