folderpicker

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package folderpicker opens the host desktop's native folder chooser when one is available. Callers must always keep a typed-path fallback: servers and minimal desktop installs commonly have no graphical session or picker tool.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnavailable means no usable graphical folder chooser is available.
	ErrUnavailable = errors.New("graphical folder chooser is unavailable")
	// ErrCancelled means the chooser was closed without selecting a folder.
	ErrCancelled = errors.New("folder selection was canceled")
)

Functions

func Choose

func Choose(ctx context.Context, initialFolder string) (string, error)

Choose opens zenity or kdialog without passing the path through a shell.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL