MCPcopy
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.
65func IsDir(mode uint32) bool {
66 return OsMode(mode).IsDir()
67}
68
69// IsSymlink checks if the mode is symlink.
70func IsSymlink(mode uint32) bool {

Callers 15

ChdirMethod · 0.92
GetAttrMethod · 0.92
BatchGetInodesMethod · 0.92
ReaddirMethod · 0.92
LsdirMethod · 0.92
UnlinkMethod · 0.92
GetSummaryMethod · 0.92
cfs_chdirFunction · 0.92
cfs_getattrFunction · 0.92
cfs_batch_get_inodesFunction · 0.92
cfs_readdirFunction · 0.92
cfs_lsdirFunction · 0.92

Calls 2

OsModeFunction · 0.85
IsDirMethod · 0.45

Tested by 2

testPrintDirTreeFunction · 0.74
testDeleteDirTreeFunction · 0.74