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

        return $this->prefixPublicPath($path);
    }