method exists documentation in bbn\File\Ftp

Checks if a file is present in a folder on the server

function(string $path) { $dir = X::dirname($path); $ext = Str::fileExt($path); $file = X::basename($path); if ( \is_array($files = $this->listFiles($dir)) ){ foreach ( $files as $f ){ if ( $f['basename'] === $file ){ return true; } } } } return false; }

Checks if a file is present in a folder on the server BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.