()
| 11 | ) |
| 12 | |
| 13 | func init() { |
| 14 | fillSystemInfo = func(e *index.Entry, sys interface{}) { |
| 15 | if os, ok := sys.(*syscall.Win32FileAttributeData); ok { |
| 16 | seconds := os.CreationTime.Nanoseconds() / 1000000000 |
| 17 | nanoseconds := os.CreationTime.Nanoseconds() - seconds*1000000000 |
| 18 | e.CreatedAt = time.Unix(seconds, nanoseconds) |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func isSymlinkWindowsNonAdmin(err error) bool { |
| 24 | const ERROR_PRIVILEGE_NOT_HELD syscall.Errno = 1314 |
nothing calls this directly
no outgoing calls
no test coverage detected