# Most efficient way to collect input file metadata?

**URL:** <https://forum.knime.com/t/most-efficient-way-to-collect-input-file-metadata/65569>\
**Category:** KNIME Analytics Platform\
**Created:** [April 16, 2023, 2:30am UTC](https://forum.knime.com/t/most-efficient-way-to-collect-input-file-metadata/65569 "2023-04-16T02:30:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [April 16, 2023, 7:06am UTC](https://forum.knime.com/t/most-efficient-way-to-collect-input-file-metadata/65569/2 "2023-04-16T07:06:58Z")

</div>

@jcjaldin you could use a [list file node](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.filehandling.utility.nodes.listpaths.ListFilesAndFoldersNodeFactory/) and a [loop](https://hub.knime.com/-/spaces/-/latest/~CET0X2z2VY9oKlYN/) to get information ([paths](https://hub.knime.com/-/spaces/-/latest/~GHc1ULoqWE_kZFOB/)) and append them like this:

> [@Can knime help me input words in excel automatically](https://forum.knime.com/t/can-knime-help-me-input-words-in-excel-automatically/25071/5):
>
> I would’ve used a Chunk Loop Start node to isolate the individual rows of URLs generated by the List Files node. The Output of this node gets split into 2 branches: the 1st branch goes to a Table Row to Variable node which converts the URL into a variable which can then be used to tell an Excel Reader node which file to grab. the 2nd branch leads to a Cell Splitter node with an appropriate delimiter such as the forward slash, which allows you to isolate the file name portion of the URL. You c…

You might have to use newer nodes instead of deprecated ones.

Then you can extract further meta informations from files like when they have last been changed, size and so on:

> **[Files/Folders Meta Info](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.filehandling.utility.nodes.metainfo.FileFolderMetaInfoNodeFactory)**
>
> This node adds meta information about the files and folders referenced by the selected column. At least the following information are covered: Directory: Indic…

And then specific to Excel you can use [OpenPyxl](https://hub.knime.com/search?q=openpyxl&type=Workflow&tag=openpyxl,excel&sort=best) from the [bundled Python](https://www.knime.com/blog/how-to-setup-the-python-extension) to extract specific informations from the Excel file itself (like author …):

> [@Extract "Date Modified" from an Excel file](https://forum.knime.com/t/extract-date-modified-from-an-excel-file/46332/3):
>
> @salazachou in addition I built something to extract the properties via Python script. The time although seems to be UTC so might have to be converted.

---

_[View the full topic](https://forum.knime.com/t/most-efficient-way-to-collect-input-file-metadata/65569)._
