Skip to content

fs, File and Path API#264

Open
someotherself wants to merge 43 commits into
xoriors:Abstract_file_access_layer_111from
someotherself:Abstract_file_access_layer_111
Open

fs, File and Path API#264
someotherself wants to merge 43 commits into
xoriors:Abstract_file_access_layer_111from
someotherself:Abstract_file_access_layer_111

Conversation

@someotherself
Copy link
Copy Markdown
Collaborator

@someotherself someotherself commented Dec 15, 2024

Issue #97

Implementation for:

crypto::fs_api::fs::OpenOptions
crypto::fs_api::fs::File (partial)
crypto::fs_api::fs (partial)
crypto::fs_api::path::Path.
crypto::fs_api::path::PathBuf.

Still on the to do list:

  • Check if crypto::fs_api::path::Path needs to be used as import in crypto::fs_api::async::fs
  • Implement the rest of the functions in crypto::fs_api::async::fs
  • Fix parsing of path components so they don't leak (they use OsStr so far). May need our own Component struct and enum Will be resolved as a separate issue.
  • Implement crypto::fs_api::io if needed

Functions implemented in fs:

  • metadata
  • exists
  • read_dir
  • canonicalize
  • create_dir
  • create_dir_all
  • read
  • read_to_string
  • remove_dir
  • remove_dir_all
  • remove_fille
  • rename
  • write

@someotherself someotherself changed the title Abstract file access layer 111 fs, File and Path API Dec 15, 2024
@radumarias radumarias linked an issue Dec 15, 2024 that may be closed by this pull request
Comment thread src/crypto/fs_api/path.rs
Comment thread src/crypto/fs_api/path.rs
Comment thread src/crypto/fs_api/path.rs
Comment thread src/crypto/fs_api/path.rs Outdated
Comment thread examples/filesystem_dbg.rs
Comment thread src/crypto/fs_api/fs.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[async] fs, File and io API

2 participants