()
| 8 | ) |
| 9 | |
| 10 | func init() { |
| 11 | fillSystemInfo = func(e *index.Entry, sys interface{}) { |
| 12 | if os, ok := sys.(*syscall.Dir); ok { |
| 13 | // Plan 9 doesn't have a CreatedAt field. |
| 14 | e.CreatedAt = time.Unix(int64(os.Mtime), 0) |
| 15 | |
| 16 | e.Dev = uint32(os.Dev) |
| 17 | |
| 18 | // Plan 9 has no Inode. |
| 19 | // ext2srv(4) appears to store Inode in Qid.Path. |
| 20 | e.Inode = uint32(os.Qid.Path) |
| 21 | |
| 22 | // Plan 9 has string UID/GID |
| 23 | e.GID = 0 |
| 24 | e.UID = 0 |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func isSymlinkWindowsNonAdmin(err error) bool { |
| 30 | return true |
nothing calls this directly
no outgoing calls
no test coverage detected