Documentation
¶
Overview ¶
Package fileview shows files and folders in the system's own programs: a folder in the file manager, an image or PDF in its viewer, a file selected in its folder. Only what can't run is opened, so a page asking (the desktop app's, or the page the tray serves) can't make it run a program.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileManager ¶
func FileManager() string
FileManager is the name of the system's file manager, for "Show in …" ("" when it has none we know by name).
func OpenDocument ¶
OpenDocument shows an image, PDF, sound or video in the system's viewer (where the window's own preview falls short). Other files are refused: the page can't make it run one.
func OpenFolder ¶
OpenFolder shows a folder (the logs', for one) in the file manager. Only an existing directory opens: the page can't make it run a file.
func RevealPath ¶
RevealPath shows a file or folder selected in the system's file manager (Finder, Explorer, Dolphin, …); where that can't be asked, it opens the folder the path is in. Nothing is run: the path must exist, and it is only shown.
Types ¶
This section is empty.