Expand description
Implements a few helper functions for filesystem operations.
Structs§
- Defines things to do to assert a downloaded file is secure and what we expect.
- Defines a wrapper around a file handle that can be used to implement file locks.
- Defines permission flags we can set per group.
- Defines a set of permissions for the user, their group and others.
Enums§
- Defines the errors tha may occur when dealing with the filesystem operations.
Functions§
- Archives the given file or directory as a
.tar.gz
file. - Recursively copies the given directory using tokio’s async library.
- Downloads some file from the interwebs to the given location.
- Moves the given or directory from one location to another.
- Unwraps a folder into its only child folder.
- Updates the permissions of the given file to become executable.
- Changes the permissions of the given file to the given triplet.
- Unarchives the given
.tar.gz
file to the given location.