Select to view content in your preferred language

Update file paths for dat files in the info folder

419
0
10-26-2022 06:59 PM
RobertJost
Emerging Contributor

I am using ArcGIS Pro 2.9.4. A collection of raster files were moved from a single directory into several new folders using the Windows File Explorer rather than the ArcGIS Pro Catalog. The "info" folder did not get copied into the new folders. The 'info' folder contains 131 files labeled "arc####.dat". When I open one of these files in an IDE (vscode) the content is a file path leading to the raster file itself.

I tried to reverse the move by copy/pasting the raster files into the folder that also contains the 'info' folder but Pro is still not able to read the raster file.

I'm thinking of writing a python script that would loop through the dat files in the info folder and update the file paths in the dat files. Would that work?

 

Any other suggestions are welcomed

 

Tags (3)
0 Kudos
0 Replies