def fn(fileBuilder): fileBuilder.setPath("/sdcard/", "") file = _files.buildFile(fn) _console.log(file.getCanonicalPath())