Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cubefs/cubefs
/ IsDir
Function
IsDir
proto/fs_proto.go:65–67 ·
view source on GitHub ↗
IsDir checks if the mode is dir.
(mode uint32)
Source
from the content-addressed store, hash-verified
63
64
// IsDir checks if the mode is dir.
65
func
IsDir(mode uint32) bool {
66
return
OsMode(mode).IsDir()
67
}
68
69
// IsSymlink checks if the mode is symlink.
70
func
IsSymlink(mode uint32) bool {
Callers
15
Chdir
Method · 0.92
GetAttr
Method · 0.92
BatchGetInodes
Method · 0.92
Readdir
Method · 0.92
Lsdir
Method · 0.92
Unlink
Method · 0.92
GetSummary
Method · 0.92
cfs_chdir
Function · 0.92
cfs_getattr
Function · 0.92
cfs_batch_get_inodes
Function · 0.92
cfs_readdir
Function · 0.92
cfs_lsdir
Function · 0.92
Calls
2
OsMode
Function · 0.85
IsDir
Method · 0.45
Tested by
2
testPrintDirTree
Function · 0.74
testDeleteDirTree
Function · 0.74