From 8c7f546593065ce9d57e5a655e5c43a901fdab61 Mon Sep 17 00:00:00 2001 From: Radu Marias Date: Fri, 26 Apr 2024 00:17:13 +0300 Subject: [PATCH] remove tmp dir for doctests --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f022b63..98cbc88d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -811,7 +811,7 @@ dependencies = [ [[package]] name = "rencfs" -version = "0.1.32" +version = "0.1.33" dependencies = [ "base64", "bincode", diff --git a/Cargo.toml b/Cargo.toml index cb8e1f95..e91a9a84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rencfs" description = "An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories." -version = "0.1.32" +version = "0.1.33" edition = "2021" license = "Apache-2.0" authors = ["Radu Marias "] diff --git a/src/lib.rs b/src/lib.rs index 50bdfb95..a2281d38 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,7 +70,7 @@ //! use rencfs::encryptedfs::{EncryptedFs, FileAttr, FileType}; //! const ROOT_INODE: u64 = 1; //! let data_dir = "/tmp/rencfs_data_test"; -//! fs::remove_dir_all(data_dir).unwrap(); +//! fs::remove_dir_all(data_dir); //! let password = "password"; //! let cipher = rencfs::encryptedfs::Cipher::ChaCha20; //! let derive_key_hash_rounds = 1000; @@ -86,6 +86,7 @@ //! fs.read(attr.ino, 0, &mut buf, fh).unwrap(); //! fs.release_handle(fh).unwrap(); //! assert_eq!(data, String::from_utf8(buf).unwrap()); +//! fs::remove_dir_all(data_dir).unwrap(); //! //! fn create_attr(ino: u64, file_type: FileType) -> FileAttr { //! FileAttr {