Finding the 'Real' file type of a file?

Hello,

Apologies if this is in the wrong place.

I have around 30k files saved from a website, but some of them are saved with the wrong file extension.

Is there a way inside UiPath to check the ‘real’ file type of a file?

For example I have XYZ.las as the file, but it was saved incorrectly and is meant to be XYZ.tif

Thanks!

Hi @robert.phillips,

Welcome to UiPath Community!

Try to use Path.GetExtension method to get the extension of a file using its path.

For more information on this check this link: