function getSubdir() {
    // Parse local path location
    var localPath = url.parse(config.get('url')).path,
        subdir;

    // Remove trailing slash
    if (localPath !== '/') {
        localPath = localPath.replace(/\/$/, '');
    }

    subdir = localPath === '/' ? '' : localPath;
    return subdir;
}
function getSubdir() {
    // Parse local path location
    var localPath = url.parse(config.get('url')).path,
        subdir;

    // Remove trailing slash
    if (localPath !== '/') {
        localPath = localPath.replace(/\/$/, '');
    }

    subdir = localPath === '/' ? '' : localPath;
    return subdir;
}
function getSubdir ( ) { // Parse local path location var localPath = url . parse ( config . get ( 'url' ) ) . path , subdir ; // Remove trailing slash if ( localPath !== '/' ) { localPath = localPath . replace ( / \/$ / , '' ) ; } subdir = localPath === '/' ? '' : localPath ; return subdir ; }
Returns a subdirectory URL, if defined so in the config.
@return {string} URL a subdirectory if configured.
Returns a subdirectory URL if defined so in the config .
Get the subdir of the current resource