RootToolsInternalMethods have getPermissions(String) method, but they can only be accessed in RootTools class
From RootTools source
private static final RootToolsInternalMethods getInternals() {
if (rim == null) {
RootToolsInternalMethods.getInstance();
return rim;
} else {
return rim;
}
}
Seems like I have to modify RootTools source and get the permissions from ls -l output
getInternals().getPermissions("ls -l output line");