Skip to content

v0.5.4

Compare
Choose a tag to compare
@Guest0x0 Guest0x0 released this 10 Sep 08:49
· 62 commits to main since this release
  • add @fs.read_file and @fs.write_file for reading/writing a filesystem path directly

  • @fs.rmdir now accepts an optional argument recursive? : Bool = false. If recursive=true, the content of the directory will be removed recursively

  • add @fs.readdir for reading the content of a directory path directly

  • @process.run can now redirect output to a shared pipe or a file. Previously usage remain valid, but will result in resource leak. The migration scheme is as follows:

    • if your intention is to read the output of a process or write to its input, replace @pipe.pipe with @process.read_from_process or @process.write_to_process

    passing a pipe directly is still allowed, but now have a different meaning. The pipe will not get closed by @process.run, this allows redirection to a shared pipe such as @pipe.stderr. In addition, you can now use @process.redirect_{from,to}_file, which can redirect output of process to a file via path, or vice versa

  • some bug fix & performance improvement