@@ -575,7 +575,7 @@ impl FatVolume {
575
575
match_name,
576
576
block,
577
577
) {
578
- Err ( Error :: FileNotFound ) => continue ,
578
+ Err ( Error :: NotFound ) => continue ,
579
579
x => return x,
580
580
}
581
581
}
@@ -592,7 +592,7 @@ impl FatVolume {
592
592
current_cluster = None ;
593
593
}
594
594
}
595
- Err ( Error :: FileNotFound )
595
+ Err ( Error :: NotFound )
596
596
}
597
597
FatSpecificInfo :: Fat32 ( fat32_info) => {
598
598
let mut current_cluster = match dir. cluster {
@@ -609,7 +609,7 @@ impl FatVolume {
609
609
match_name,
610
610
block,
611
611
) {
612
- Err ( Error :: FileNotFound ) => continue ,
612
+ Err ( Error :: NotFound ) => continue ,
613
613
x => return x,
614
614
}
615
615
}
@@ -619,7 +619,7 @@ impl FatVolume {
619
619
_ => None ,
620
620
}
621
621
}
622
- Err ( Error :: FileNotFound )
622
+ Err ( Error :: NotFound )
623
623
}
624
624
}
625
625
}
@@ -653,7 +653,7 @@ impl FatVolume {
653
653
return Ok ( dir_entry. get_entry ( fat_type, block, start) ) ;
654
654
}
655
655
}
656
- Err ( Error :: FileNotFound )
656
+ Err ( Error :: NotFound )
657
657
}
658
658
659
659
/// Delete an entry from the given directory
@@ -691,7 +691,7 @@ impl FatVolume {
691
691
// Scan the cluster / root dir a block at a time
692
692
for block in first_dir_block_num. range ( dir_size) {
693
693
match self . delete_entry_in_block ( block_device, match_name, block) {
694
- Err ( Error :: FileNotFound ) => {
694
+ Err ( Error :: NotFound ) => {
695
695
// Carry on
696
696
}
697
697
x => {
@@ -731,7 +731,7 @@ impl FatVolume {
731
731
let block_idx = self . cluster_to_block ( cluster) ;
732
732
for block in block_idx. range ( BlockCount ( u32:: from ( self . blocks_per_cluster ) ) ) {
733
733
match self . delete_entry_in_block ( block_device, match_name, block) {
734
- Err ( Error :: FileNotFound ) => {
734
+ Err ( Error :: NotFound ) => {
735
735
// Carry on
736
736
continue ;
737
737
}
@@ -755,7 +755,7 @@ impl FatVolume {
755
755
}
756
756
// If we get here we never found the right entry in any of the
757
757
// blocks that made up the directory
758
- Err ( Error :: FileNotFound )
758
+ Err ( Error :: NotFound )
759
759
}
760
760
761
761
/// Deletes a directory entry from a block of directory entries.
@@ -790,7 +790,7 @@ impl FatVolume {
790
790
. map_err ( Error :: DeviceError ) ;
791
791
}
792
792
}
793
- Err ( Error :: FileNotFound )
793
+ Err ( Error :: NotFound )
794
794
}
795
795
796
796
/// Finds the next free cluster after the start_cluster and before end_cluster
0 commit comments