Updateed DownloadConfig example to correctly delete file

This commit is contained in:
Gideon le Grange 2016-10-06 22:33:05 +02:00
parent 2b5ade26fa
commit 4b87d3b660
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ public class DownloadConfig extends Example {
private void test() throws MikrotikApiException, InterruptedException {
con.execute("/export file=conf");
List<Map<String, String>> res = con.execute("/file/print detail where name=conf.rsc");
con.execute("/file/remove conf.rsc");
con.execute("/file/remove .id=conf.rsc");
String text = res.get(0).get("contents");
for (String line : text.split("\r")) {
System.out.println(line);