Crate simpleio

source ·

Enums§

  • Enum for possible outcomes when creating a directory

Functions§

  • Creates the directory if it does not already exist.
  • Returns true if the file exists, false if not. Directories are also files on unix.
  • Returns the config directory. It is just home/.config. All config files the application uses should be in home/.config/application-name. They should NOT be writen in the home directory as it clutters up the home dir and the .config was made for these files. However, many applications do this wrong. Just type la instead of ls inside your home dir to see evidence of that.
  • Returns the home directory of the user as a std::path::PathBuf.
  • Returns the home directory of the user as a String.
  • Reads file to the end into Vec.
  • Reads file to the end into String.
  • Reads lines from file. Returns lines in vector.
  • Reads lines from file. Returns Lines iterator.