Does this help? Note we may change this API in the future, but so far it should work.
const resolvedCurrentDirectoryPath = await jsreport.currentDirectoryPath() const searchResult = await jsreport.folders.resolveEntityFromPath(path, 'assets', { currentPath: resolvedCurrentDirectoryPath }) if (searchResult == null) { // entity doesn't exist on patyh } else { // exist }J