Fixed remote backups for FTP

backup_error_fix
Joey Hines 2021-02-12 20:17:07 -06:00
parent 0ff76dec0a
commit b30dc8e0b3
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ impl RemoteBackupSite for FTPBackup {
}
fn get_backups(&mut self) -> error::Result<Vec<Self::FileType>> {
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)))