filesDir = _files.getFilesDir() def fn1(fileBuilder): fileBuilder.setPath(filesDir, "tmp/aaa.txt") file = _files.buildFile(fn1) _console.log(file.isFile()) file.createNewFile() _console.log(file.isFile()) file.delete()