hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/mv.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/mv.rv
parent88750ed7132c08bcfb24e878c893ef7185c3c0b0 (diff)
feat: actual real vfs, not a faked one lmao
Diffstat (limited to 'gils/mv.rv')
-rw-r--r--gils/mv.rv8
1 files changed, 4 insertions, 4 deletions
diff --git a/gils/mv.rv b/gils/mv.rv
index d44b898..d87cb28 100644
--- a/gils/mv.rv
+++ b/gils/mv.rv
@@ -6,14 +6,14 @@ if context.argv:len() < 3 do
end else do
const source = expand_path(context.argv[1])
const destination = expand_path(context.argv[2])
- const size = fs:size(source)
+ const size = vfs:size(source)
if size < 0 do
fail("mv: #{source}: no such file\n")
end else do
- const contents = if (size > 0) fs:read_bytes(source, 0, size) else ""
- if fs:store(destination, contents) == 1 do
- fs:unlink(source)
+ const contents = if (size > 0) vfs:read_bytes(source, 0, size) else ""
+ if vfs:store(destination, contents) == 1 do
+ vfs:unlink(source)
puts("#{source} -> #{destination}\n")
end
end