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

Method sendFile

arduino-core/src/cc/arduino/packages/ssh/SCP.java:96–98  ·  view source on GitHub ↗
(File localFile)

Source from the content-addressed store, hash-verified

94 }
95
96 public void sendFile(File localFile) throws IOException {
97 sendFile(localFile, localFile.getName());
98 }
99
100 public void sendFile(File localFile, String remoteFile) throws IOException {
101 out.write(("C0644 " + localFile.length() + " " + remoteFile + "\n").getBytes());

Callers 2

scpFilesMethod · 0.80
recursiveSCPMethod · 0.80

Calls 4

ensureAcknowledgedMethod · 0.95
getNameMethod · 0.65
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected