Add support for Windows, replace all back slashes with forward slashes

This commit is contained in:
Lance Pioch 2018-05-13 11:38:31 -04:00
parent 5f6ee45f44
commit f42f211e65
2 changed files with 5 additions and 5 deletions

View file

@ -101,7 +101,7 @@ class FileActionsController extends Controller
{
$server = $request->attributes->get('server');
$dirname = pathinfo($file, PATHINFO_DIRNAME);
$dirname = str_replace('\\', '/', pathinfo($file, PATHINFO_DIRNAME));
try {
$content = $this->repository->setServer($server)->setToken($request->attributes->get('server_token'))->getContent($file);
} catch (RequestException $exception) {