Documentation
¶
Index ¶
- func Create(ctx context.Context, path string) error
- func Delete(ctx context.Context, pathToDelete string) error
- func Exists(ctx context.Context, pathToCheck string) bool
- func IsDir(ctx context.Context, pathToCheck string) bool
- func IsFile(ctx context.Context, pathToCheck string) bool
- func ReadAsBytes(ctx context.Context, pathToRead string) ([]byte, error)
- func ReadAsString(ctx context.Context, pathToRead string) (string, error)
- func SecureDelete(ctx context.Context, path string) error
- func WriteBytes(ctx context.Context, pathToWrite string, content []byte) error
- func WriteString(ctx context.Context, pathToWrite string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAsBytes ¶ added in v0.408.0
func SecureDelete ¶
Overwrite the file before deleting it to prevent data restore. Like 'shred' on linux systems.
func WriteBytes ¶ added in v0.408.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.