Skip to main content
Module

x/dpp_vim/deps.ts>fn.getfsize

Dark powered plugin manager for Vim/neovim
Latest
function fn.getfsize
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { getfsize } = fn;

The result is a Number, which is the size in bytes of the given file {fname}. If {fname} is a directory, 0 is returned. If the file {fname} can't be found, -1 is returned. If the size of {fname} is too big to fit in a Number then -2 is returned.

Can also be used as a method:

GetFilename()->getfsize()

Parameters

denops: Denops
fname: unknown

Returns

Promise<number>