docs(readme): reformat todo list for std::fs::*
This commit is contained in:
parent
fa4232de6b
commit
1d947862f6
1 changed files with 17 additions and 19 deletions
36
README.md
36
README.md
|
@ -4,25 +4,23 @@ Provides injectable Filesystem and Network resources to make code more testable.
|
||||||
|
|
||||||
#### std::fs alternatives
|
#### std::fs alternatives
|
||||||
|
|
||||||
| To Do | [std::fs] | [kxio::fs::FileSystem] | |
|
- [ ] std::fs::canonicalize - path(path).canonicalize() - Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved. |
|
||||||
| ----- | ---------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
- [ ] std::fs::copy - file(path).copy(target) - Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file. |
|
||||||
| [ ] | canonicalize | path(path).canonicalize() | Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved. |
|
- [x] std::fs::create_dir - dir(path).create() - Creates a new, empty directory at the provided path |
|
||||||
| [ ] | copy | file(path).copy(target) | Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file. |
|
- [x] std::fs::create_dir_all - dir(path).create_all() - Recursively create a directory and all of its parent components if they are missing. |
|
||||||
| [x] | create_dir | dir(path).create() | Creates a new, empty directory at the provided path |
|
- [ ] std::fs::hard_link - link(path)create() - Creates a new hard link on the filesystem. |
|
||||||
| [x] | create_dir_all | dir(path).create_all() | Recursively create a directory and all of its parent components if they are missing. |
|
- [ ] std::fs::metadata - path(path).metadata() - Given a path, query the file system to get information about a file, directory, etc. |
|
||||||
| [ ] | hard_link | link(path)create() | Creates a new hard link on the filesystem. |
|
- [ ] std::fs::read - file(path).reader().bytes() - Read the entire contents of a file into a bytes vector. |
|
||||||
| [ ] | metadata | path(path).metadata() | Given a path, query the file system to get information about a file, directory, etc. |
|
- [x] std::fs::read_dir - dir(path).read() - Returns an iterator over the entries within a directory. |
|
||||||
| [ ] | read | file(path).reader().bytes() | Read the entire contents of a file into a bytes vector. |
|
- [ ] std::fs::read_link - link(path).read() - Reads a symbolic link, returning the file that the link points to. |
|
||||||
| [x] | read_dir | dir(path).read() | Returns an iterator over the entries within a directory. |
|
- [x] std::fs::read_to_string - file(path).reader().to_string() - Read the entire contents of a file into a string. |
|
||||||
| [ ] | read_link | link(path).read() | Reads a symbolic link, returning the file that the link points to. |
|
- [ ] std::fs::remove_dir - dir(path).remove() - Removes an empty directory. |
|
||||||
| [x] | read_to_string | file(path).reader().to_string() | Read the entire contents of a file into a string. |
|
- [ ] std::fs::remove_dir_all - dir(path).remove_all() - Removes a directory at this path, after removing all its contents. Use carefully! |
|
||||||
| [ ] | remove_dir | dir(path).remove() | Removes an empty directory. |
|
- [ ] std::fs::remove_file - file(path).remove() - Removes a file from the filesystem. |
|
||||||
| [ ] | remove_dir_all | dir(path).remove_all() | Removes a directory at this path, after removing all its contents. Use carefully! |
|
- [ ] std::fs::rename - path(path).rename() - Rename a file or directory to a new name, replacing the original file if to already exists. |
|
||||||
| [ ] | remove_file | file(path).remove() | Removes a file from the filesystem. |
|
- [ ] std::fs::set_permissions - path(path).set_permissions() - Changes the permissions found on a file or a directory. |
|
||||||
| [ ] | rename | path(path).rename() | Rename a file or directory to a new name, replacing the original file if to already exists. |
|
- [ ] std::fs::symlink_metadata - link(path).metadata() - Query the metadata about a file without following symlinks. |
|
||||||
| [ ] | set_permissions | path(path).set_permissions() | Changes the permissions found on a file or a directory. |
|
- [x] std::fs::write - file(path).write() - Write a slice as the entire contents of a file. |
|
||||||
| [ ] | symlink_metadata | link(path).metadata() | Query the metadata about a file without following symlinks. |
|
|
||||||
| [x] | write | file(path).write() | Write a slice as the entire contents of a file. |
|
|
||||||
|
|
||||||
### Network
|
### Network
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue