Add checks that return an `llvm::Error` in case a provided path is a directory in the case a `FilePath` was requested.
revng pipe