Module close_already::fs

source ·
Expand description

Fast-closing replacements to the standard library filesystem manipulation operations

This module provides replaces the standard library functions with close_already-using versions. The functions have identical signatures to make drop-in replacing possible; and the implementation is as close to std as possible (differences noted in documentation for each method)

Functions§

  • Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file
  • Read the entire contents of a file into a bytes vector
  • Read the entire contents of a file into a string.
  • Write a slice as the entire contents of a file