objects/jads_directory.js
function (requestURL, filename, fileType) {
    
    if (gc.coreFunctions.getReqestExtension(filename) == '.ipa'){
        // The template of an entry as well as the indicator variable for a file or dir.
        // This is used for IPA files that need to be installed on iOS devices so .manifest is appended to search for the appropriate manifest.
        var listingEntry = '<tr><td>{itemType}</td><td><a href="itms-services://?action=download-manifest&url={hrefLink}.plist">{itemName}</a></td></tr>\n';

        // Populate the template now using the placeholders as text to be replaced.
        listingEntry = listingEntry.replace('{itemType}', "iOS");
        listingEntry = listingEntry.replace('{hrefLink}', gc.coreFunctions.joinPaths(requestURL, filename));
        listingEntry = listingEntry.replace('{itemName}', filename);
    } else {
        // The template of an entry as well as the indicator variable for a file or dir.
        var listingEntry = '<tr><td>{itemType}</td><td><a href="{hrefLink}">{itemName}</a></td></tr>\n';
        // Populate the template now using the placeholders as text to be replaced.
        listingEntry = listingEntry.replace('{itemType}', fileType);
        listingEntry = listingEntry.replace('{hrefLink}', gc.coreFunctions.joinPaths(requestURL, filename));
        listingEntry = listingEntry.replace('{itemName}', filename);
    }
    
    
    
    // Return the entry.
    return listingEntry;
}
function (requestURL, filename, fileType) {
    
    if (gc.coreFunctions.getReqestExtension(filename) == '.ipa'){
        // The template of an entry as well as the indicator variable for a file or dir.
        // This is used for IPA files that need to be installed on iOS devices so .manifest is appended to search for the appropriate manifest.
        var listingEntry = '<tr><td>{itemType}</td><td><a href="itms-services://?action=download-manifest&url={hrefLink}.plist">{itemName}</a></td></tr>\n';

        // Populate the template now using the placeholders as text to be replaced.
        listingEntry = listingEntry.replace('{itemType}', "iOS");
        listingEntry = listingEntry.replace('{hrefLink}', gc.coreFunctions.joinPaths(requestURL, filename));
        listingEntry = listingEntry.replace('{itemName}', filename);
    } else {
        // The template of an entry as well as the indicator variable for a file or dir.
        var listingEntry = '<tr><td>{itemType}</td><td><a href="{hrefLink}">{itemName}</a></td></tr>\n';
        // Populate the template now using the placeholders as text to be replaced.
        listingEntry = listingEntry.replace('{itemType}', fileType);
        listingEntry = listingEntry.replace('{hrefLink}', gc.coreFunctions.joinPaths(requestURL, filename));
        listingEntry = listingEntry.replace('{itemName}', filename);
    }
    
    
    
    // Return the entry.
    return listingEntry;
}
function ( requestURL , filename , fileType ) { if ( gc . coreFunctions . getReqestExtension ( filename ) == '.ipa' ) { // The template of an entry as well as the indicator variable for a file or dir. // This is used for IPA files that need to be installed on iOS devices so .manifest is appended to search for the appropriate manifest. var listingEntry = '<tr><td>{itemType}</td><td><a href="itms-services://?action=download-manifest&url={hrefLink}.plist">{itemName}</a></td></tr>\n' ; // Populate the template now using the placeholders as text to be replaced. listingEntry = listingEntry . replace ( '{itemType}' , "iOS" ) ; listingEntry = listingEntry . replace ( '{hrefLink}' , gc . coreFunctions . joinPaths ( requestURL , filename ) ) ; listingEntry = listingEntry . replace ( '{itemName}' , filename ) ; } else { // The template of an entry as well as the indicator variable for a file or dir. var listingEntry = '<tr><td>{itemType}</td><td><a href="{hrefLink}">{itemName}</a></td></tr>\n' ; // Populate the template now using the placeholders as text to be replaced. listingEntry = listingEntry . replace ( '{itemType}' , fileType ) ; listingEntry = listingEntry . replace ( '{hrefLink}' , gc . coreFunctions . joinPaths ( requestURL , filename ) ) ; listingEntry = listingEntry . replace ( '{itemName}' , filename ) ; } // Return the entry. return listingEntry ; }
Node file system object. Formats an entry for the directory listing based on whether its a file or dir.
Node file system object . Formats an entry for the directory listing based on whether its a file or dir .