Module spacetimedb_standalone::util

source ·

Functions§

  • If allow_create is set to true and the directory is missing, create it. Otherwise, if allow_create is set to false and the directory is missing an error is returned. Otherwise if the directory does exist, do nothing.
  • If allow_create is set to true and the file (and parent directory) is missing, create it with contents. Otherwise if the file doesn’t exist and allow_create is set to false, an error is returned. Otherwise if the file does exist, do nothing.
  • Returns the name of the current executable without the tail extension and the path.