Transparent use of the `fs` module locally or over SSH