|
|
@@ -16,7 +16,7 @@ use crate::fs::feature::xattr;
|
|
|
use crate::fs::feature::xattr::{FileAttributes, Attribute};
|
|
|
use crate::fs::fields as f;
|
|
|
|
|
|
-use super::mounts::ALL_MOUNTS;
|
|
|
+use super::mounts::all_mounts;
|
|
|
use super::mounts::MountedFs;
|
|
|
|
|
|
|
|
|
@@ -256,13 +256,13 @@ impl<'dir> File<'dir> {
|
|
|
pub fn is_mount_point(&self) -> bool {
|
|
|
cfg!(any(target_os = "linux", target_os = "macos")) &&
|
|
|
self.is_directory() &&
|
|
|
- self.absolute_path.as_ref().is_some_and(|p| ALL_MOUNTS.contains_key(p))
|
|
|
+ self.absolute_path.as_ref().is_some_and(|p| all_mounts().contains_key(p))
|
|
|
}
|
|
|
|
|
|
/// The filesystem device and type for a mount point
|
|
|
pub fn mount_point_info(&self) -> Option<&MountedFs> {
|
|
|
if cfg!(any(target_os = "linux",target_os = "macos")) {
|
|
|
- return self.absolute_path.as_ref().and_then(|p|ALL_MOUNTS.get(p));
|
|
|
+ return self.absolute_path.as_ref().and_then(|p| all_mounts().get(p));
|
|
|
}
|
|
|
None
|
|
|
}
|