Skip to content
Commit b67eaf92 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

[DeviceManager] Remove exists() check from storageAccessFromPath

The check is fairly pointless, as the function is typically called with
a path which was valid immediately before, and otherwise the check would
be prone to a TOCTOU race anyway.

It also makes unit testing the function fairly impossible, as the
fakehardware in general has a different filesystem layout than the host,
and we don't want to and can't tie the fakehw to the host filesystem.
parent a7a1bf6e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment