-
Notifications
You must be signed in to change notification settings - Fork 0
/
fs.sh
executable file
·64 lines (53 loc) · 1.01 KB
/
fs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
. "${0%/*}/generate.sh"
cat <<EOT
import (
"io/fs"
"os"
)
EOT
generate_const io/fs \
ModeDir
generate_var io/fs \
ErrInvalid \
ErrPermission \
ErrExist \
ErrNotExist \
ErrClosed \
SkipDir
generate_var os \
ErrNoDeadline \
ErrDeadlineExceeded
generate_types io/fs \
PathError \
FS \
File \
FileInfo \
FileMode \
DirEntry \
GlobFS \
StatFS \
SubFS \
ReadDirFS \
ReadDirFile \
ReadFileFS \
WalkDirFunc
generate_types os \
SyscallError
generate_proxies \
io/fs \
ValidPath:name:string:bool \
Glob:fsys,pattern:fs.FS,string:[]string,error \
ReadFile:fsys,name:fs.FS,string:[]byte,error \
ReadDir:fsys,name:fs.FS,string:[]fs.DirEntry,error \
Stat:fsys,name:fs.FS,string:fs.FileInfo,error \
Sub:fsys,dir:fs.FS,string:fs.FS,error \
FileInfoToDirEntry:info:fs.FileInfo:DirEntry \
WalkDir:fsys,root,fn:fs.FS,string,WalkDirFunc:error \
generate_proxies \
os \
IsPermission:err:error:bool \
IsExist:err:error:bool \
IsNotExist:err:error:bool \
IsTimeout:err:error:bool \
generate_done