src/Helpers/FileSystem.php
public static function trimFileName($path)
    {
        $name = static::nameFromPath($path);

        return substr($path, 0, strlen($path) - strlen($name));
    }
public static function trimFileName($path)
    {
        $name = static::nameFromPath($path);

        return substr($path, 0, strlen($path) - strlen($name));
    }
public static function trimFileName ( $ path ) { $ name = static :: nameFromPath ( $ path ) ; return substr ( $ path , 0 , strlen ( $ path ) - strlen ( $ name ) ) ; }
Trim file name from provided path

@param string $path

@return string
Trim file name from provided path