RevealFiles.swift 537 B

1234567891011121314151617
  1. import Foundation
  2. extension BackendFeatures {
  3. /// Backend methods for revealing files in the system's file manager.
  4. ///
  5. /// These are used by ``EnvironmentValues/revealFile``.
  6. @MainActor
  7. public protocol RevealFiles: Core {
  8. /// Reveals a file in the system's file manager.
  9. ///
  10. /// This typically opens the file's enclosing directory and highlights the
  11. /// file.
  12. ///
  13. /// - Parameter url: The URL of the file to reveal.
  14. func revealFile(_ url: URL) throws
  15. }
  16. }