Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method League\Flysystem\Local\LocalFilesystemAdapter::getPathPrefix() #30

Closed
albinvar opened this issue Feb 18, 2022 · 4 comments · Fixed by #34, #35 or #36
Closed
Assignees

Comments

@albinvar
Copy link
Owner

Call to undefined method League\Flysystem\Local\LocalFilesystemAdapter::getPathPrefix()

unable to get the full path of the desired file/folder without opting a particular disk as root

@albinvar albinvar self-assigned this Feb 18, 2022
@albinvar
Copy link
Owner Author

$this->downloadFile = Storage::disk($this->disk)->getAdapter()->getPathPrefix().'/'.$this->file;

$this->downloadFile = $disk->getAdapter()->getPathPrefix().$this->file;

@albinvar
Copy link
Owner Author

replacing with Storage::path() fixes the issue.

@albinvar
Copy link
Owner Author

$this->downloadFile = Storage::disk($disk)->path($this->file);

$this->downloadFile = Storage::disk($this->disk)->path($this->file);

@albinvar albinvar linked a pull request Feb 18, 2022 that will close this issue
@albinvar
Copy link
Owner Author

Found more instances

if ($this->pma->updateRoot(\Storage::disk('local')->getAdapter()->getPathPrefix().'/www/phpMyAdmin-' . $this->version . '-all-languages')) {

$this->mainPath = Storage::disk('projects')->getAdapter()->getPathPrefix() . $this->frameworkDisk;

This was linked to pull requests Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant