summaryrefslogtreecommitdiff
path: root/ormdir/ormdir.ml
diff options
context:
space:
mode:
authorZoRo <dos21h@gmail.com>2020-06-27 18:02:17 +0100
committerZoRo <dos21h@gmail.com>2020-06-27 18:02:17 +0100
commit81cece0dc62e1ba9d162ab12ae361b870d74568a (patch)
treeaeb1c75ec74c1d27d616656eb3d27452105edb2f /ormdir/ormdir.ml
downloadosystem-81cece0dc62e1ba9d162ab12ae361b870d74568a.tar.gz
osystem-81cece0dc62e1ba9d162ab12ae361b870d74568a.zip
oecho,omkdir,ormdir,omkfile
Diffstat (limited to 'ormdir/ormdir.ml')
-rw-r--r--ormdir/ormdir.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/ormdir/ormdir.ml b/ormdir/ormdir.ml
new file mode 100644
index 0000000..db3edc2
--- /dev/null
+++ b/ormdir/ormdir.ml
@@ -0,0 +1,12 @@
+open Arg
+open Scanf
+open Printf
+open Unix
+
+let argnum = Array.length Sys.argv
+
+let _ =
+ if argnum >= 2 then
+ let _ = rmdir Sys.argv.(1) in ()
+ else
+ Printf.printf "ERR only one argument\n" \ No newline at end of file