Skip to content

Commit

Permalink
make virtually_exists private
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-Sky authored and Byron committed May 17, 2023
1 parent 9198013 commit 454a77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freedesktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub fn list() -> Result<Vec<TrashItem>, Error> {
/// - nothing => Ok(false)
/// - I/O Error => Err(Io)
#[inline]
pub fn virtually_exists(path: &Path) -> std::io::Result<bool> {
fn virtually_exists(path: &Path) -> std::io::Result<bool> {
Ok(path.try_exists()? || path.is_symlink())
}

Expand Down

0 comments on commit 454a77e

Please sign in to comment.