MCPcopy Create free account
hub / github.com/bdring/FluidNC / isMacOS

Method isMacOS

FluidNC/src/WebUI/WebDAV.cpp:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42// .hidden
43
44bool WebDAV::isMacOS(AsyncWebServerRequest* request) {
45 return request->hasHeader("User-Agent") && request->getHeader("User-Agent")->value().indexOf("Darwin") != -1;
46}
47
48// We can reject attempts to create or access MacOS metadata files, which
49// waste precious space on FLASH filesystems and can waste time on SD filesystems,

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected