setPath
val file = _files.buildFile {
setPath("/sdcard/", "")
}
_console.log(file.getCanonicalPath())
def file = $files.buildFile {
setPath("/sdcard/", "")
}
$console.log(file.getCanonicalPath())
let file = $files.buildFile((fileBuilder) => {
fileBuilder.setPath("/sdcard/", "")
})
$console.log(file.getCanonicalPath())
local file = _files:buildFile(function(fileBuilder)
fileBuilder:setPath("/sdcard/", "")
end)
_console:log(file:getCanonicalPath())
<?php
$file = $files->buildFile(function ($fileBuilder) {
$fileBuilder->setPath("/sdcard/", "");
});
$console->log($file->getCanonicalPath());
def fn(fileBuilder):
fileBuilder.setPath("/sdcard/", "")
file = _files.buildFile(fn)
_console.log(file.getCanonicalPath())
file = $files.buildFile { |fileBuilder|
fileBuilder.setPath("/sdcard/", "")
}
$console.log(file.getCanonicalPath())
Last modified: 29 April 2025