Module cli_xtask::fs

source ·
Expand description

Utility functions for working with paths.

Traits

  • Convert a path to a path relative to the current directory which implements Display.

Functions

  • Copy a file from from to to, and output those path to log.
  • Create a new directory if it doesn’t exist, and output the path to log.
  • Create a new File from a path, and output the path to log.
  • Create a new directory if it doesn’t exist, or remove all its contents if exists.
  • Remove a directory if exists and output the path to log.