|
WPILibC++
2020.3.2
|
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... | |
WPILib FileSystem namespace.
| 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).
| result | The 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.
| result | The 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).
| result | The result of the operating directory lookup. |