You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have an abstract layer to interact with the filesystem in EncryptedFs. This helps us have several implementations for desktop, WASM, and mobile that handle the particularities of each platform.
radumarias
changed the title
[sync] Abstract storage API to access local fs storage #111
[sync] Abstract storage API to access local fs storage
Dec 8, 2024
radumarias
changed the title
[sync] Abstract storage API to access local fs storage
[sync] Abstract storage API to access storage
Dec 8, 2024
Have an abstract layer to interact with the filesystem in
EncryptedFs
. This helps us have several implementations for desktop, WASM, and mobile that handle the particularities of each platform.Abstractization layer for API similar to https://doc.rust-lang.org/std/fs/struct.File.html , https://doc.rust-lang.org/stable/std/fs/ and https://doc.rust-lang.org/stable/std/io/ and implementation that uses the above ones for accessing local FS. Use that impl in
EncryptedFs
struct andcrypto
modules to access FS.Structure of crypto module
crypto::storage::sync::fs::OpenOptions
crypto::storage::sync::fs::File
crypto::storage::sync::fs
crypto::storage::sync::io
crypto::storage::sync::path::Path](https://doc.rust-lang.org/stable/std/path/struct.Path.html). This is because the existing method uses local fs
crypto::storage::sync::path::PathBuf. This is because the existing method uses local fs
We will have smth similar to how this is atomic Write to a File https://crates.io/crates/atomic-write-file
Flow is like this
This issue corresponds to
encrypted_storage::sync::[fs, fs::File, io]
.#111
The text was updated successfully, but these errors were encountered: