diff --git a/src/remote/ftp.rs b/src/remote/ftp.rs index 1544320..75d9d8b 100644 --- a/src/remote/ftp.rs +++ b/src/remote/ftp.rs @@ -56,7 +56,7 @@ impl RemoteBackupSite for FTPBackup { } fn get_backups(&mut self) -> error::Result> { - let files = self.stream.list(Some(self.target_dir.to_str().unwrap()))?; + let files = self.stream.nlst(Some(self.target_dir.to_str().unwrap()))?; Ok(files .into_iter() .filter_map(|file| Self::FileType::new(PathBuf::from(file)))