You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
570B

  1. #pragma once
  2. #include <vector>
  3. #include "common.hpp"
  4. namespace rack {
  5. namespace system {
  6. std::vector<std::string> listEntries(std::string path);
  7. bool isFile(std::string path);
  8. bool isDirectory(std::string path);
  9. void copyFile(std::string srcPath, std::string destPath);
  10. void createDirectory(std::string path);
  11. /** Opens a URL, also happens to work with PDFs and folders.
  12. Shell injection is possible, so make sure the URL is trusted or hard coded.
  13. May block, so open in a new thread.
  14. */
  15. void openBrowser(std::string url);
  16. } // namespace system
  17. } // namespace rack