Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1Panel-dev/1Panel
/ IsBlockDevice
Function
IsBlockDevice
agent/utils/files/utils.go:37–39 ·
view source on GitHub ↗
(mode os.FileMode)
Source
from the content-addressed store, hash-verified
35
}
36
37
func
IsBlockDevice(mode os.FileMode) bool {
38
return
mode&os.ModeDevice != 0 && mode&os.ModeCharDevice == 0
39
}
40
41
func
GetMimeType(path string) string {
42
file, err := os.Open(path)
Callers
1
getContent
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected