Ben5665 / roottools

Automatically exported from code.google.com/p/roottools
1 stars 0 forks source link

Make deleteFileOrDirectory() a static method #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An app can call most RootTools APIs without creating a new object:

        gotShell = RootTools.checkUtil("dmesg");
        RootTools.copyFile("/data/local/tmp/abc", "/system/abc", true, false);
        RootTools.remount("/system", "RW");
        ...

But for deleteFileOrDirectory() it needs to do:

        new RootTools().deleteFileOrDirectory("/data/foo", false);

It would be nice if this call was more consistent with the others:

        RootTools.deleteFileOrDirectory("/data/foo", false);

Trivial patch attached.

Original issue reported on code.google.com by cerne...@gmail.com on 9 Jul 2013 at 12:21

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed.

attached corrected Jar.

Original comment by Stericso...@gmail.com on 9 Jul 2013 at 1:32

Attachments: