Skip to content

Commit

Permalink
Fix android compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ovillanova committed Aug 9, 2024
1 parent bbe1cfa commit 3200eb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clone_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ async fn is_block_dev(file: &File) -> Result<bool, std::io::Error> {
use std::os::linux::fs::MetadataExt;
#[cfg(target_os = "macos")]
use std::os::macos::fs::MetadataExt;
#[cfg(target_os = "android")]
use std::os::android::fs::MetadataExt;
let meta = file.metadata().await?;
if meta.st_mode() & 0x6000 == 0x6000 {
Ok(true)
Expand Down

0 comments on commit 3200eb7

Please sign in to comment.