v0.5.4
-
add
@fs.read_file
and@fs.write_file
for reading/writing a filesystem path directly -
@fs.rmdir
now accepts an optional argumentrecursive? : Bool = false
. Ifrecursive=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 - if your intention is to read the output of a process or write to its input, replace
-
some bug fix & performance improvement