Will ipfs.file.stat download full file content?

I’m using ipfs.file.stat to check if a hash is a directory.

But it takes a long time for this function to return.

So I’m guessing this function actually download the full file content, am I right?

It downloads the root block. If the file is under 256KiB, it’ll download the entire file.

It’s probably just taking a while to find the file.