Documentation
¶
Overview ¶
Package searchpath resolves standard container directories (Documents, Application Support, Caches, Downloads, ...) inside the App Sandbox, wrapping FileManager.URLForDirectory(inDomain:appropriateFor:create:).
Index ¶
- func ApplicationSupportDirectory(shouldCreate bool) (string, error)
- func CachesDirectory(shouldCreate bool) (string, error)
- func DesktopDirectory(shouldCreate bool) (string, error)
- func DocumentDirectory(shouldCreate bool) (string, error)
- func DownloadsDirectory(shouldCreate bool) (string, error)
- func LibraryDirectory(shouldCreate bool) (string, error)
- func SearchPathURL(directory foundation.SearchPathDirectory, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationSupportDirectory ¶
ApplicationSupportDirectory returns Application Support inside the app container when sandboxed.
func CachesDirectory ¶
CachesDirectory returns Caches inside the app container when sandboxed.
func DesktopDirectory ¶
DesktopDirectory returns Desktop inside the app container when sandboxed.
func DocumentDirectory ¶
DocumentDirectory returns the user Documents directory inside the app container when sandboxed.
func DownloadsDirectory ¶
DownloadsDirectory returns Downloads inside the app container when sandboxed.
func LibraryDirectory ¶
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.