WPILibC++  2019.2.1-25-g182758c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
frc::filesystem Namespace Reference

WPILib FileSystem namespace. More...

Functions

void GetLaunchDirectory (wpi::SmallVectorImpl< char > &result)
 Obtains the current working path that the program was launched with. More...
 
void GetOperatingDirectory (wpi::SmallVectorImpl< char > &result)
 Obtains the operating directory of the program. More...
 
void GetDeployDirectory (wpi::SmallVectorImpl< char > &result)
 Obtains the deploy directory of the program, which is the remote location src/main/deploy is deployed to by default. More...
 

Detailed Description

WPILib FileSystem namespace.

Function Documentation

void frc::filesystem::GetDeployDirectory ( wpi::SmallVectorImpl< char > &  result)

Obtains the deploy directory of the program, which is the remote location src/main/deploy is deployed to by default.

On the roboRIO, this is /home/lvuser/deploy. In simulation, it is where the simulation was launched from, in the subdirectory "deploy" (pwd/deploy).

Parameters
resultThe result of the operating directory lookup
void frc::filesystem::GetLaunchDirectory ( wpi::SmallVectorImpl< char > &  result)

Obtains the current working path that the program was launched with.

This is analogous to the pwd command on unix.

Parameters
resultThe result of the current working path lookup.
void frc::filesystem::GetOperatingDirectory ( wpi::SmallVectorImpl< char > &  result)

Obtains the operating directory of the program.

On the roboRIO, this is /home/lvuser. In simulation, it is where the simulation was launched from (pwd).

Parameters
resultThe result of the operating directory lookup.