public function trimFilename(string $prefix): bool
    {
        $affected = false;
        $len = strlen($prefix);
        foreach ($this->props['items'] as &$item) {
            if ((!empty($item['file'])) && (strpos($item['file'], $prefix) === 0)) {
                $item['file'] = substr($item['file'], $len);
                $affected = true;
            }
        }
        unset($item);
        return $affected;
    }
public function trimFilename(string $prefix): bool
    {
        $affected = false;
        $len = strlen($prefix);
        foreach ($this->props['items'] as &$item) {
            if ((!empty($item['file'])) && (strpos($item['file'], $prefix) === 0)) {
                $item['file'] = substr($item['file'], $len);
                $affected = true;
            }
        }
        unset($item);
        return $affected;
    }
public function trimFilename ( string $ prefix ) : bool { $ affected = false ; $ len = strlen ( $ prefix ) ; foreach ( $ this -> props [ 'items' ] as & $ item ) { if ( ( ! empty ( $ item [ 'file' ] ) ) && ( strpos ( $ item [ 'file' ] , $ prefix ) === 0 ) ) { $ item [ 'file' ] = substr ( $ item [ 'file' ] , $ len ) ; $ affected = true ; } } unset ( $ item ) ; return $ affected ; }
Trims a filename by a basic directory name

@param string $prefix
@return bool
Trims a filename by a basic directory name