Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Delete-a-file/Peri/delete-a-file-1.peri
Normal file
9
Task/Delete-a-file/Peri/delete-a-file-1.peri
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
###sysinclude standard.uh
|
||||
###sysinclude args.uh
|
||||
###sysinclude str.uh
|
||||
###sysinclude io.uh
|
||||
// ===================
|
||||
#g argc 3 < { #s ."Usage: " 0 argv print SPACE 1 argv print ." filename\n" end }
|
||||
2 argv 'e inv istrue { #s ."The given file ( " 2 argv print ." ) doesn't exist!\n" end }
|
||||
2 argv removefile
|
||||
end
|
||||
9
Task/Delete-a-file/Peri/delete-a-file-2.peri
Normal file
9
Task/Delete-a-file/Peri/delete-a-file-2.peri
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
###sysinclude standard.uh
|
||||
###sysinclude args.uh
|
||||
###sysinclude str.uh
|
||||
###sysinclude io.uh
|
||||
#g argc 3 < { ."Usage: " #s 0 argv print SPACE 1 argv print SPACE ."unnecessary_directory\n" end }
|
||||
2 argv 'd inv istrue { ."The given directory doesn't exist! Exited.\n" }{
|
||||
2 argv rmdir
|
||||
}
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue