packages/cafeteria/docs/localize/resource_conv.js
function findExcelFile() {
    var files = fso.getFolder(".").Files;
    for (var e = new Enumerator(files) ; !e.atEnd() ; e.moveNext()) {
        var file = e.item();
        // [CDP customize]
        var extXLSX = '.xlsx';
        var extODS = '.ods';
        if (file.Name.substr(file.Name.length - extXLSX.length) === extXLSX) {
            return file.Path;
        } else if (file.Name.substr(file.Name.length - extODS.length) === extODS) {
            return file.Path;            
        }
        // [CDP customize]
    }
    return null;
}
function findExcelFile() {
    var files = fso.getFolder(".").Files;
    for (var e = new Enumerator(files) ; !e.atEnd() ; e.moveNext()) {
        var file = e.item();
        // [CDP customize]
        var extXLSX = '.xlsx';
        var extODS = '.ods';
        if (file.Name.substr(file.Name.length - extXLSX.length) === extXLSX) {
            return file.Path;
        } else if (file.Name.substr(file.Name.length - extODS.length) === extODS) {
            return file.Path;            
        }
        // [CDP customize]
    }
    return null;
}
function findExcelFile ( ) { var files = fso . getFolder ( "." ) . Files ; for ( var e = new Enumerator ( files ) ; ! e . atEnd ( ) ; e . moveNext ( ) ) { var file = e . item ( ) ; // [CDP customize] var extXLSX = '.xlsx' ; var extODS = '.ods' ; if ( file . Name . substr ( file . Name . length - extXLSX . length ) === extXLSX ) { return file . Path ; } else if ( file . Name . substr ( file . Name . length - extODS . length ) === extODS ) { return file . Path ; } // [CDP customize] } return null ; }
Find first .ods file
Find first . ods file