MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / sendNoOp

Method sendNoOp

src/plugins/ftp/src/android/com/foxdebug/ftp/Ftp.java:368–389  ·  view source on GitHub ↗
(JSONArray args, CallbackContext callback)

Source from the content-addressed store, hash-verified

366 }
367
368 public void sendNoOp(JSONArray args, CallbackContext callback) {
369 cordova
370 .getThreadPool()
371 .execute(
372 new Runnable() {
373 public void run() {
374 try {
375 String ftpId = args.optString(0);
376 FTPClient ftp = ftpProfiles.get(ftpId);
377 if (ftp == null) {
378 callback.error("FTP client not found.");
379 return;
380 }
381 ftp.sendNoOp();
382 callback.success();
383 } catch (Exception e) {
384 callback.error(e.getMessage());
385 }
386 }
387 }
388 );
389 }
390
391 public void deleteFile(JSONArray args, CallbackContext callback) {
392 cordova

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected