Fixed remote backups for FTP
parent
0ff76dec0a
commit
b30dc8e0b3
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue