I have two different server. In first server laravel application is deployed and in second server some files are stored. I want to check if a specific file exists in second server from laravel application. I have ftp credentials of second server. I am using laravel filesystem to connect second server. I have defined ftp credentials in config/filesystem.php file. Below is the code what I have tried
Storage::disk('ftp')->exists('generated/file1.csv');
I am getting following error:
ftp_chdir(): Can't change directory to /home/username/public_html/: No such file or directory