Fix FTP-SIZE to read reply until the end of the string.
This commit is contained in:
parent
a4810b4cae
commit
101109e785
|
@ -206,9 +206,8 @@
|
||||||
(define (ftp-size connection file)
|
(define (ftp-size connection file)
|
||||||
(let* ((reply (ftp-send-command connection
|
(let* ((reply (ftp-send-command connection
|
||||||
(format #f "SIZE ~a" file))))
|
(format #f "SIZE ~a" file))))
|
||||||
(and (string? reply)
|
(string->number (substring reply
|
||||||
(string->number (substring reply
|
4 (string-length reply)))))
|
||||||
4 (- (string-length reply) 1))))))
|
|
||||||
|
|
||||||
;; Abort the current data transfer. Maybe we should close the data
|
;; Abort the current data transfer. Maybe we should close the data
|
||||||
;; socket?
|
;; socket?
|
||||||
|
|
Loading…
Reference in New Issue