mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 12:43:14 +00:00
Use is_file() as file_exists() also checks whether a directory exists
This commit is contained in:
+1
-1
@@ -305,7 +305,7 @@ class Curl
|
||||
|
||||
$mode = 'wb';
|
||||
// Attempt to resume download only when a temporary download file exists and is not empty.
|
||||
if (file_exists($download_filename) && $filesize = filesize($download_filename)) {
|
||||
if (is_file($download_filename) && $filesize = filesize($download_filename)) {
|
||||
$mode = 'ab';
|
||||
$first_byte_position = $filesize;
|
||||
$range = $first_byte_position . '-';
|
||||
|
||||
Reference in New Issue
Block a user