public function prefixDirectoryStack($path)
    {
        if ($this->withinWorkingDirectory())
        {
            return rtrim($this->getWorkingDirectory().'/'.ltrim($path, '/'), '/');
        }

        return $this->prefixPublicPath($path);
    }
public function prefixDirectoryStack($path)
    {
        if ($this->withinWorkingDirectory())
        {
            return rtrim($this->getWorkingDirectory().'/'.ltrim($path, '/'), '/');
        }

        return $this->prefixPublicPath($path);
    }
public function prefixDirectoryStack ( $ path ) { if ( $ this -> withinWorkingDirectory ( ) ) { return rtrim ( $ this -> getWorkingDirectory ( ) . '/' . ltrim ( $ path , '/' ) , '/' ) ; } return $ this -> prefixPublicPath ( $ path ) ; }
Prefix the last directory from the stack or the public path if not
within a working directory

@param  string  $path
@return string
Prefix the last directory from the stack or the public path if not within a working directory