File Metadata Reader

Bronze Certified

Custom Activity

1 reviews

963

File Metadata Reader

Bronze Certified

Custom Activity

1 reviews

963


Summary

Each file type contains different sets of attributes that are unique to their type. These attributes describe the file types. How about an activity that can extract all that information?

Overview

Every file we create and use each day in our computers have their own set of attributes that perfectly describe them. These attributes are usually unique to each file type apart from a couple of quite common attributes like the created date, modified date.
Why worry about these attributes? These attributes come in very handy when we are working on a file system based automation solutions. This component provides an activity which can easily access and retrieve all the properties of any given file. This activity will not only provide the standard and common attributes, but it will look for the extended attributes as well. Extended attributes are the attributes that are quite unique to each file type. For example, mp4 files have lots of unique attributes like bit rate, frame size, video length, directors etc.
This activity provides all that information in a Dictionary<String>, <String> format. The activity will look for every attribute of a given file type and validate whether those attributes have any values defined. The attributes that do not have any defined value will be excluded from the output it generates. Every attribute that has a defined value will be added to a Dictionary type and will be returned to the user.
Arguments
Input: File path: provide the file path of the file you need to extract metadata from.
Output: Extracted Data (Dictionary<String>,<String>): All the extracted metadata will be returned in this format. The attribute name will be described in the Key of the dictionary and its value will be under the value segment of the dictionary.

Benefits


Published: Jul 13, 2019 | Updated: Dec 18, 2020

Lahiru Fernando
UiPath MVP/ RPA Solution Architect

Colombo, Sri Lanka


License

MIT


Code Language

Visual Basic


Tags


Compatibility

Component is built on .Net framework 4.6.1 Tested on UiPath Studio 2019.6.0 Compatible with previous and current versions of UiPath Studio


Dependencies

.Net Framework 4.6.1 UiPath.System.Activities 19.6.0 UiPath.UIAutomation.Activities 19.6.0