public function is_file_readable_remotely_by_storedfile(stored_file $file) {
        if (!$file->get_filesize()) {
            // Files with empty size are either directories or empty.
            // We handle these virtually.
            return true;
        }

        $path = $this->get_remote_path_from_storedfile($file, false);
        if (is_readable($path)) {
            return true;
        }

        return false;
    }
public function is_file_readable_remotely_by_storedfile(stored_file $file) {
        if (!$file->get_filesize()) {
            // Files with empty size are either directories or empty.
            // We handle these virtually.
            return true;
        }

        $path = $this->get_remote_path_from_storedfile($file, false);
        if (is_readable($path)) {
            return true;
        }

        return false;
    }
public function is_file_readable_remotely_by_storedfile ( stored_file $ file ) { if ( ! $ file -> get_filesize ( ) ) { // Files with empty size are either directories or empty. // We handle these virtually. return true ; } $ path = $ this -> get_remote_path_from_storedfile ( $ file , false ) ; if ( is_readable ( $ path ) ) { return true ; } return false ; }
Determine whether the file is present on the local file system somewhere.

@param stored_file $file The file to ensure is available.
@return bool
Determine whether the file is present on the local file system somewhere .