From 2277b19905ae3fb736166eb8f0d2d5c02f29bef9 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 19 Sep 2023 21:45:20 +0200 Subject: ftp, file: better dirlist, fix FTP path issue * Dirlist is now unified across ftp and file loaders. It's basically a copycat of w3m's FTP dirlist, because I like how it looks. * We now hack around the cURL FTP path problem by always prepending a slash to the path. This is probably closer aligned with expectations than the default behavior. --- src/bindings/curl.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bindings/curl.nim') diff --git a/src/bindings/curl.nim b/src/bindings/curl.nim index 825ab656..720b7126 100644 --- a/src/bindings/curl.nim +++ b/src/bindings/curl.nim @@ -267,7 +267,7 @@ type CURLE_UNRECOVERABLE_POLL, # 99 - poll/select returned fatal error CURL_LAST # never use! - curl_ftpmethod* {.size: sizeof(cint).} = enum + curl_ftpmethod* {.size: sizeof(clong).} = enum CURLFTPMETHOD_DEFAULT, # let libcurl pick CURLFTPMETHOD_MULTICWD, # single CWD operation for each path part CURLFTPMETHOD_NOCWD, # no CWD at all -- cgit 1.4.1-2-gfad0