MCPcopy Create free account
hub / github.com/M66B/FairEmail / copy

Method copy

app/src/main/java/eu/faircode/email/Helper.java:3102–3108  ·  view source on GitHub ↗
(File src, File dst)

Source from the content-addressed store, hash-verified

3100 }
3101
3102 static void copy(File src, File dst) throws IOException {
3103 try (InputStream is = new FileInputStream(src)) {
3104 try (OutputStream os = new FileOutputStream(dst)) {
3105 copy(is, os);
3106 }
3107 }
3108 }
3109
3110 static long copy(Context context, Uri uri, File file) throws IOException {
3111 try (InputStream is = context.getContentResolver().openInputStream(uri)) {

Callers 15

uploadMethod · 0.95
processUriMethod · 0.95
delegateMethod · 0.95
onRestoreMethod · 0.95
downloadMethod · 0.95
downloadImageMethod · 0.95
callMethod · 0.95
onExecuteMethod · 0.95
onExecuteMethod · 0.95
onExecuteMethod · 0.95
onExecuteMethod · 0.95
answerMethod · 0.95

Calls 3

toStringMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected