this can just be `if (result.local)` since local path is also set for remote files.