ftp.php changes in files_external/lib

is_dir calls to root folder in constructor were replaced with cache check. The is_dir call from constructor causes many FTP connections when OC performs any file- or folder operations and an FTP storage is mounted. Cache check eliminates this traffic.

Function hasUpdated were implemented.