WPILibC++  2020.3.2
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

◆ GetDeployDirectory()

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 "src/main/deploy" (pwd/src/main/deploy).

Parameters
resultThe result of the operating directory lookup

◆ GetLaunchDirectory()

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.

◆ GetOperatingDirectory()

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.