From 59794d0b999e544a94230d9562bf2b99d2ed74c7 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 11 Oct 2026 02:16:56 +0200 Subject: feat: actual real vfs, not a faked one lmao --- gils/cp.rv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gils/cp.rv') diff --git a/gils/cp.rv b/gils/cp.rv index 6fd06a8..e92ce21 100644 --- a/gils/cp.rv +++ b/gils/cp.rv @@ -8,13 +8,13 @@ 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("cp: #{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) + const contents = if (size > 0) vfs:read_bytes(source, 0, size) else "" + if (vfs:store(destination, contents) == 1) puts("#{source} -> #{destination}\n") end end -- cgit v1.3