Skip to content

Commit 7c5cb06

Browse files
committed
Add plan 9 support for osFileInfo
Signed-off-by: Ronald G Minnich <[email protected]>
1 parent 7070f5a commit 7c5cb06

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

file/file_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !windows && !darwin && !dragonfly && !freebsd && !linux && !nacl && !netbsd && !openbsd && !solaris && !wasm
1+
//go:build !windows && !darwin && !dragonfly && !freebsd && !linux && !nacl && !netbsd && !openbsd && !solaris && !wasm && !plan9
22

33
package file
44

file/file_plan9.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package file
2+
3+
import (
4+
"os"
5+
)
6+
7+
// getOSFileInfo returns file information on Unix.
8+
// There are no such fields on Plan 9 -- at least
9+
// of the Unix type. Plan 9 uids and gids are strings.
10+
func getOSFileInfo(info os.FileInfo) *FileInfo {
11+
return nil
12+
}

0 commit comments

Comments
 (0)