MCPcopy
hub / github.com/arduino/Arduino / absoluteFile

Method absoluteFile

arduino-core/src/processing/app/BaseNoGui.java:112–120  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

110 // directory when starting the IDE (which is not the same as the
111 // current working directory!).
112 static public File absoluteFile(String path) {
113 if (path == null) return null;
114
115 File file = new File(path);
116 if (!file.isAbsolute()) {
117 file = new File(currentDirectory, path);
118 }
119 return file;
120 }
121
122 /**
123 * Get the number of lines in a file by counting the number of newline

Callers 7

getSettingsFolderMethod · 0.95
getSketchbookFolderMethod · 0.95
getSketchbookPathMethod · 0.95
initParametersMethod · 0.95
getBuildPathMethod · 0.95
absoluteFileMethod · 0.95
BaseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected