hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/touch.rv
blob: 2dd0d8cb60dc228650b7000bcd5e9ec520038b76 (plain)
1
2
3
4
5
6
7
8
9
# dont touch my nono square

const context = env.ctx
if context.argv:len() < 2 do puts("usage: touch <path>\n") end
else do
  const path = abspath(context.argv[1])
  if fs:is_dir(path) do puts("touch: #{path}: is a directory\n") end
  else if fs:size(path) < 0 do fs:store(path, "") end
end