MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getDiskFileType

Function getDiskFileType

lib/host/wasi/inode-win.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164inline __wasi_filetype_t getDiskFileType(DWORD_ Attribute) noexcept {
165 if (Attribute & FILE_ATTRIBUTE_REPARSE_POINT_) {
166 return __WASI_FILETYPE_SYMBOLIC_LINK;
167 }
168 if (Attribute & FILE_ATTRIBUTE_DIRECTORY_) {
169 return __WASI_FILETYPE_DIRECTORY;
170 }
171 return __WASI_FILETYPE_REGULAR_FILE;
172}
173
174inline __wasi_filetype_t getSocketType(SOCKET_ Socket) noexcept {
175 int SocketType = 0;

Callers 3

filestatGetMethod · 0.85
doLoadDirentMethod · 0.85
filetypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected