hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/touch.rv
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-11 02:16:56 +0200
committerhachem <im@hachem.wtf>2026-10-11 02:16:56 +0200
commit59794d0b999e544a94230d9562bf2b99d2ed74c7 (patch)
treea001db5b5ebb9453d6a0e96f56b36e6ec3ccdd51 /gils/touch.rv
parent88750ed7132c08bcfb24e878c893ef7185c3c0b0 (diff)
feat: actual real vfs, not a faked one lmao
Diffstat (limited to 'gils/touch.rv')
-rw-r--r--gils/touch.rv6
1 files changed, 3 insertions, 3 deletions
diff --git a/gils/touch.rv b/gils/touch.rv
index 3032e96..5e27309 100644
--- a/gils/touch.rv
+++ b/gils/touch.rv
@@ -5,9 +5,9 @@ if context.argv:len() < 2 do
fail("usage: touch <path>\n")
end else do
const path = expand_path(context.argv[1])
- if fs:is_dir(path) do
+ if vfs:is_dir(path) do
fail("touch: #{path}: is a directory\n")
- end else if fs:size(path) < 0 do
- fs:store(path, "")
+ end else if vfs:size(path) < 0 do
+ vfs:store(path, "")
end
end