protected function absoluteToFilesystemPath($filePath)
    {

        if (!$this->isWithinFilesystem($filePath)) {
            return $filePath;
        }

        $fsPath = (string)$this->filesystem->url()->path;

        return str_replace($fsPath,'', $filePath);

    }
protected function absoluteToFilesystemPath($filePath)
    {

        if (!$this->isWithinFilesystem($filePath)) {
            return $filePath;
        }

        $fsPath = (string)$this->filesystem->url()->path;

        return str_replace($fsPath,'', $filePath);

    }
protected function absoluteToFilesystemPath ( $ filePath ) { if ( ! $ this -> isWithinFilesystem ( $ filePath ) ) { return $ filePath ; } $ fsPath = ( string ) $ this -> filesystem -> url ( ) -> path ; return str_replace ( $ fsPath , '' , $ filePath ) ; }
Cat the absolute part of a file path off to make a relative filesystem
path

@param string $filePath

@return string
Cat the absolute part of a file path off to make a relative filesystem path