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
615B

  1. #pragma once
  2. #include "common.hpp"
  3. #include <list>
  4. namespace rack {
  5. namespace system {
  6. std::list<std::string> listEntries(const std::string &path);
  7. bool isFile(const std::string &path);
  8. bool isDirectory(const std::string &path);
  9. void copyFile(const std::string &srcPath, const std::string &destPath);
  10. void createDirectory(const 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(const std::string &url);
  16. } // namespace system
  17. } // namespace rack