-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor rename and use nftw function
- Loading branch information
Showing
12 changed files
with
130 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#{ | ||
Creates the batata directory and then removes it. | ||
#} | ||
|
||
test-io = 1 | ||
|
||
mkdir path = | ||
(call "MKDIR" path) | ||
|
||
rm_all path = | ||
(call "RM_ALL" path) | ||
|
||
main = | ||
let path = "./batata" | ||
with IO { | ||
ask * = (mkdir path) | ||
ask s = (rm_all path) | ||
(wrap s) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#{ | ||
Calls the rm_all function with a file path as argument. | ||
#} | ||
|
||
test-io = 1 | ||
|
||
rm_all path = | ||
(call "RM_ALL" path) | ||
|
||
main = | ||
let temp = "./temp.txt" | ||
with IO { | ||
ask * = (IO/FS/write_file temp (String/encode_utf8 "Contents")) | ||
ask s = (rm_all temp) | ||
(wrap s) | ||
} |
Oops, something went wrong.