MCPcopy Create free account
hub / github.com/lxn/walk / knownFolderPath

Function knownFolderPath

path.go:15–23  ·  view source on GitHub ↗
(id win.CSIDL)

Source from the content-addressed store, hash-verified

13)
14
15func knownFolderPath(id win.CSIDL) (string, error) {
16 var buf [win.MAX_PATH]uint16
17
18 if !win.SHGetSpecialFolderPath(0, &buf[0], id, false) {
19 return "", newError("SHGetSpecialFolderPath failed")
20 }
21
22 return syscall.UTF16ToString(buf[0:]), nil
23}
24
25func AppDataPath() (string, error) {
26 return knownFolderPath(win.CSIDL_APPDATA)

Callers 5

AppDataPathFunction · 0.85
CommonAppDataPathFunction · 0.85
LocalAppDataPathFunction · 0.85
PersonalPathFunction · 0.85
SystemPathFunction · 0.85

Calls 1

newErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…