# Will ipfs.file.stat download full file content?

**URL:** <https://discuss.ipfs.tech/t/will-ipfs-file-stat-download-full-file-content/6011>\
**Category:** Uncategorized\
**Created:** [August 3, 2019, 8:19am UTC](https://discuss.ipfs.tech/t/will-ipfs-file-stat-download-full-file-content/6011 "2019-08-03T08:19:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linonetwo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/linonetwo/32/923_2.png) [@linonetwo](https://discuss.ipfs.tech/u/linonetwo)\
**Post date:** [August 3, 2019, 8:19am UTC](https://discuss.ipfs.tech/t/will-ipfs-file-stat-download-full-file-content/6011/1 "2019-08-03T08:19:16Z")

</div>

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.

 ![server timing](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/c/ce721f164598f82fc40b26db6a4c478021d6a88c.png)

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

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [August 5, 2019, 4:47am UTC](https://discuss.ipfs.tech/t/will-ipfs-file-stat-download-full-file-content/6011/2 "2019-08-05T04:47:29Z")

</div>

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.
