A peer-to-peer stack for code collaboration
Exports ls! and modify-file! (#367)
Julian Arnic6d3d6fc0d18
diff --git a/docs/source/reference.rst b/docs/source/reference.rstindex c645bba..ce22004 100644--- a/docs/source/reference.rst+++ b/docs/source/reference.rst@@ -830,6 +830,16 @@ Read a file key. Assumes that the file contents is a serialised dict.Write a key to a file. Assumes that the file contents is a serialiseddict.+``(ls!)``+~~~~~~~~~++List the contents of the current working directory++``(modify-file! file f)``+~~~~~~~~~~~~~~~~~~~~~~~~~++Modified the value stored in a file according to the function ``f``.+``prelude/bool``----------------diff --git a/rad/prelude/io.rad b/rad/prelude/io.radindex 491af2a..f9f883e 100644--- a/rad/prelude/io.rad+++ b/rad/prelude/io.rad@@ -2,7 +2,7 @@:doc "Some basic I/O functions.":exports '[print! shell! process! read-line! read-file-value! read-file-values! send-code!shell-with-stdout! shell-no-stdin! process-with-stdout! write-file!- init-file-dict! read-file-key! write-file-key!+ init-file-dict! read-file-key! write-file-key! ls! modify-file!]}(import prelude/patterns :unqualified)