|
RobotCore 1.0
WPILib port to raspberry Pi
|
Static Public Member Functions | |
| static File | getLaunchDirectory () |
| static File | getOperatingDirectory () |
| static File | getDeployDirectory () |
Class for interacting with the Filesystem, particularly, interacting with WPILib-related paths on the system, such as the launch and deploy directories.
This class is primarily used for obtaining resources in src/main/deploy, and the systemcore path /home/systemcore in a simulation-compatible way.
Definition at line 21 of file Filesystem.java.
|
static |
Obtains the 'deploy' directory of the program, located at src/main/deploy, which is deployed by default. On the systemcore, this is /home/systemcore/deploy. In simulation, it is where the simulation was launched from, in the subdirectory "src/main/deploy" (pwd/src/main/deploy).
Definition at line 62 of file Filesystem.java.
|
static |
Obtains the current working path that the program was launched with. This is analogous to the pwd command on unix.
Definition at line 30 of file Filesystem.java.
|
static |
Obtains the operating directory of the program. On the systemcore, this is /home/systemcore. In simulation, it is where the simulation was launched from (pwd).
Definition at line 46 of file Filesystem.java.