RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
org.wpilib.system.Filesystem Class Reference

Static Public Member Functions

static File getLaunchDirectory ()
static File getOperatingDirectory ()
static File getDeployDirectory ()

Detailed Description

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.

Member Function Documentation

◆ getDeployDirectory()

File org.wpilib.system.Filesystem.getDeployDirectory ( )
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).

Returns
The 'deploy' directory

Definition at line 62 of file Filesystem.java.

◆ getLaunchDirectory()

File org.wpilib.system.Filesystem.getLaunchDirectory ( )
static

Obtains the current working path that the program was launched with. This is analogous to the pwd command on unix.

Returns
The current working directory (launch directory)

Definition at line 30 of file Filesystem.java.

◆ getOperatingDirectory()

File org.wpilib.system.Filesystem.getOperatingDirectory ( )
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).

Returns
The operating directory

Definition at line 46 of file Filesystem.java.


The documentation for this class was generated from the following file: