Updated dependencies

This commit is contained in:
veeso
2021-04-03 17:45:02 +02:00
parent f8a448f5e9
commit 52b35f9232
5 changed files with 156 additions and 222 deletions

View File

@@ -275,7 +275,7 @@ pub trait FileTransfer {
match entry {
FsEntry::Directory(dir) => {
// If directory name, matches wildcard, push it to drained
if filter.is_match(dir.name.as_str()) {
if filter.matches(dir.name.as_str()) {
drained.push(FsEntry::Directory(dir.clone()));
}
match self.iter_search(dir.abs_path.as_path(), filter) {
@@ -284,7 +284,7 @@ pub trait FileTransfer {
}
}
FsEntry::File(file) => {
if filter.is_match(file.name.as_str()) {
if filter.matches(file.name.as_str()) {
drained.push(FsEntry::File(file.clone()));
}
}

View File

@@ -680,7 +680,7 @@ impl Localhost {
match entry {
FsEntry::Directory(dir) => {
// If directory matches; push directory to drained
if filter.is_match(dir.name.as_str()) {
if filter.matches(dir.name.as_str()) {
drained.push(FsEntry::Directory(dir.clone()));
}
match self.iter_search(dir.abs_path.as_path(), filter) {
@@ -689,7 +689,7 @@ impl Localhost {
}
}
FsEntry::File(file) => {
if filter.is_match(file.name.as_str()) {
if filter.matches(file.name.as_str()) {
drained.push(FsEntry::File(file.clone()));
}
}