CodeIgniter Forums
Ftp class - ftp->mirror() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Ftp class - ftp->mirror() (/thread-21251.html)



Ftp class - ftp->mirror() - El Forum - 08-04-2009

[eluser]Irimia[/eluser]
Hello everyone,

I just discovered that ftp->mirror() is not working as it should (or at least as i understanded from User Guide). Is uploading everything, but not .NAME files, like .htaccess or .htpasswd.

Checking the Ftp.php class, the problem is from line 509

Code:
elseif(substr($file, 0, 1) != ".") //<--
{
// Get the file extension so we can se the upload type
$ext = $this->_getext($file);
$mode = $this->_settype($ext);
                    
$this->upload($locpath.$file, $rempath.$file, $mode);
}

Now, i don't know if this is how should work or is just a little bug.

Thank you,


Ftp class - ftp->mirror() - El Forum - 08-06-2009

[eluser]Irimia[/eluser]
I think i posted this in wrong place. Can some one move it to Bug Reports?

Thank you,