searchpath

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package searchpath resolves standard container directories (Documents, Application Support, Caches, Downloads, ...) inside the App Sandbox, wrapping FileManager.URLForDirectory(inDomain:appropriateFor:create:).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationSupportDirectory

func ApplicationSupportDirectory(shouldCreate bool) (string, error)

ApplicationSupportDirectory returns Application Support inside the app container when sandboxed.

func CachesDirectory

func CachesDirectory(shouldCreate bool) (string, error)

CachesDirectory returns Caches inside the app container when sandboxed.

func DesktopDirectory

func DesktopDirectory(shouldCreate bool) (string, error)

DesktopDirectory returns Desktop inside the app container when sandboxed.

func DocumentDirectory

func DocumentDirectory(shouldCreate bool) (string, error)

DocumentDirectory returns the user Documents directory inside the app container when sandboxed.

func DownloadsDirectory

func DownloadsDirectory(shouldCreate bool) (string, error)

DownloadsDirectory returns Downloads inside the app container when sandboxed.

func LibraryDirectory

func LibraryDirectory(shouldCreate bool) (string, error)

LibraryDirectory returns the user Library directory inside the app container when sandboxed.

func SearchPathURL

func SearchPathURL(directory foundation.SearchPathDirectory, domain foundation.SearchPathDomainMask, shouldCreate bool) (string, error)

SearchPathURL returns a standard directory URL for a sandboxed app container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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