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

failed to open stream: No such file or directory #13

Open
bahramiholding opened this issue Feb 25, 2021 · 5 comments
Open

failed to open stream: No such file or directory #13

bahramiholding opened this issue Feb 25, 2021 · 5 comments

Comments

@bahramiholding
Copy link

hello i have this error in laravel 8 and 7

` copy(/root/encrypted//database/processes/LeaveAbsenceRequest.bpmn): failed to open stream: No such file or directory

at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:302
298▕ * @return bool
299▕ /
300▕ public function copy($path, $target)
301▕ {
➜ 302▕ return copy($path, $target);
303▕ }
304▕
305▕ /
*
306▕ * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.

  +17 vendor frames 

18 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
`

@SiavashBamshadnia
Copy link
Owner

Hi
Please write the artisan command you run

@bahramiholding
Copy link
Author

php artisan encrypt-source

@bahramiholding
Copy link
Author

    public function copy($path, $target)
    {
//        return copy($path, $target);
    } 


when comment section of code in provider project working prefect

@SiavashBamshadnia
Copy link
Owner

OK. Does your project work without problems?

@panapol-p
Copy link

I think this bug is from incorrect path
I saw double slash below

copy(/root/encrypted//database/processes/LeaveAbsenceRequest.bpmn)

that is the reason why cannot copy
fix issue by replace double slash to slash before this line

File::copy(base_path($filePath), base_path("$destination/$filePath"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants