You are here

function asset_pathinfo in Asset 6

Same name and namespace in other branches
  1. 5 asset.module \asset_pathinfo()

wrapper around pathinfo() that strips file_directory_path from path and . from dirname

2 calls to asset_pathinfo()
asset_wizard_location_bar in ./asset_wizard.inc
asset_wizard_location_bar in inc/asset_wizard.inc

File

inc/asset.routines.inc, line 143

Code

function asset_pathinfo($path) {
  $path = trim(str_replace(file_directory_path(), '', $path), '/');
  $info = pathinfo($path);
  if ($info['dirname'] == '.') {
    $info['dirname'] = '';
  }
  return $info;
}