diff options
Diffstat (limited to 'gils/head.rv')
| -rw-r--r-- | gils/head.rv | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gils/head.rv b/gils/head.rv index eb50087..c124ed3 100644 --- a/gils/head.rv +++ b/gils/head.rv @@ -1,11 +1,11 @@ # gimme some head lung fn file_lines(path) -> table | :nil do - const size = fs:size(path) + const size = vfs:size(path) if (size < 0) return :nil - const contents = if (size > 0) fs:read_bytes(path, 0, size) else "" + const contents = if (size > 0) vfs:read_bytes(path, 0, size) else "" const raw_lines = contents:split("\n") let result = {} for index in 0..raw_lines:len() do |
