Skip to main content
Module

x/denops_std/function/mod.ts>getfsize

📚 Standard module for denops.vim
Go to Latest
function getfsize
import { getfsize } from "https://deno.land/x/denops_std@v5.0.1/function/mod.ts";

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>