WPILibC++ 2023.4.3-108-ge5452e3
frc::filesystem Namespace Reference

WPILib FileSystem namespace. More...

Functions

std::string GetLaunchDirectory ()
 Obtains the current working path that the program was launched with. More...
 
std::string GetOperatingDirectory ()
 Obtains the operating directory of the program. More...
 
std::string GetDeployDirectory ()
 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()

std::string frc::filesystem::GetDeployDirectory ( )

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).

Returns
The result of the operating directory lookup

◆ GetLaunchDirectory()

std::string frc::filesystem::GetLaunchDirectory ( )

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

This is analogous to the pwd command on unix.

Returns
The result of the current working path lookup.

◆ GetOperatingDirectory()

std::string frc::filesystem::GetOperatingDirectory ( )

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).

Returns
The result of the operating directory lookup.