Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "changed: No need to get FTP filetimes for Exists() calls"

This reverts commit e373cd5.
  • Loading branch information...
commit 8332e8b0355ba35b034433b78b159a6829ee7acd 1 parent 1145deb
arnova authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/filesystem/CurlFile.cpp
5 xbmc/filesystem/CurlFile.cpp
@@ -1084,8 +1084,11 @@ bool CCurlFile::Exists(const CURL& url)
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_WRITEDATA, NULL); /* will cause write failure*/
if(url2.GetProtocol() == "ftp")
+ {
+ g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_FILETIME, 1);
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_FTP_FILEMETHOD, CURLFTPMETHOD_NOCWD);
+ }
CURLcode result = g_curlInterface.easy_perform(m_state->m_easyHandle);
g_curlInterface.easy_release(&m_state->m_easyHandle, NULL);

2 comments on commit 8332e8b


Would be nice to have a comment on each revert - why it is actually reverted ...


Because it broke Exists() for FTP. Apparently CURLOPT_FILETIME is not only needed for :Stat() but for proper existance checking as well.

Please sign in to comment.
Something went wrong with that request. Please try again.