Expand description
File system operations
Windjammer’s std::fs module maps to these functions.
Structs§
- DirEntry
- Directory entry wrapper
Functions§
- copy
- Copy a file
- create_
dir - Create a directory
- create_
dir_ all - Create a directory and all parent directories
- exists
- Check if path exists
- is_dir
- Check if path is a directory
- is_file
- Check if path is a file
- read
- Read entire file as bytes
- read_
bytes - Alias for read() for clarity
- read_
dir - List directory entries
- read_
to_ string - Read entire file as a string
- remove_
dir - Remove a directory
- remove_
dir_ all - Remove a directory and all its contents
- remove_
file - Remove a file
- rename
- Rename a file or directory
- write
- Write to file (accepts bytes or strings)
- write_
string - Write string to file (helper for common case)