Drake
find_runfiles.cc File Reference
#include "drake/common/find_runfiles.h"
#include <sys/stat.h>
#include <unistd.h>
#include <cstdlib>
#include <fstream>
#include <memory>
#include "fmt/format.h"
#include "tools/cpp/runfiles/runfiles.h"
#include "drake/common/drake_assert.h"
#include "drake/common/never_destroyed.h"
#include "drake/common/text_logging.h"
Include dependency graph for find_runfiles.cc:

Namespaces

 drake
 
 drake::internal
 

Functions

bool HasRunfiles ()
 Returns true iff this process has Bazel runfiles available. More...
 
RlocationOrError FindRunfile (const std::string &resource_path)
 Returns the absolute path to the given resource_path from Bazel runfiles, or else an error message when not found. More...
 
bool IsFile (const std::string &filesystem_path)
 Returns true iff the given path is a file. More...
 
bool IsDir (const std::string &filesystem_path)
 Returns true iff the given path is a directory. More...
 
std::string Readlink (const std::string &pathname)
 A C++ wrapper for C's readlink(2). More...
 

Variable Documentation

◆ error

std::string error

◆ runfiles

std::unique_ptr<Runfiles> runfiles

◆ runfiles_dir

std::string runfiles_dir