Restore Full Folder and File Names for Project Archives on Windows
Background
When using the Project Archive tool to extract project archives, you may encounter issues with long file paths and nested subfolder structures that can exceed the standard Windows path limit of 260 characters. To prevent broken archive files and extraction errors, the Project Archive tool automatically truncates folder and file names during extraction.
To help you restore the full folder and file names after extraction, Procore includes a CSV path mapping file (path-map.csv) within the extracted archive folder. This file lists each truncated name alongside its corresponding full name. You can use the CSV file along with a standard PowerShell script to quickly restore all complete item names.
Things to Consider
Additional Information:
Do not run the PowerShell script on an unextracted
.ziparchive file.Close any open files or documents located inside the extracted archive folder before running the PowerShell script to prevent file-locking errors.
Running the PowerShell script multiple times is safe if certain folder or file names were already partially restored.
Prerequisites
Steps
Open the Extracted Archive Folder
Unzip your downloaded
.ziparchive file.Open the unzipped archive folder in File Explorer.
Verify that the
path-map.csvfile is present in the archive folder.
Note: This CSV file contains three columns:Type,ShortenedName, andOriginalName.
Open PowerShell in the Extracted Archive Folder
You must open PowerShell inside the extracted archive folder path. If it is opened from another location, the PowerShell script will not locate path-map.csv or your files.
Choose one of the following methods:
Option A: Address Bar (Recommended)
In your Windows system, open File Explorer.
In File Explorer, navigate into the extracted archive folder so that the
path-map.csvfile is visible.Click an empty area on the 'Address Bar' at the top of the window (where the file path is listed).
Type
powershelland press Enter.
The Windows PowerShell window opens, targeting your extracted archive folder path.
Option B: Context Menu
In your Windows system, open File Explorer.
Open the extracted folder in File Explorer.
Press and hold the Shift key, then right-click on an empty area inside the folder window.
Select Open PowerShell window here (on Windows 11, select Open in Terminal).
Verify Your Directory
In the PowerShell window, type dir and press Enter.
If
path-map.csvis listed in the output, you are in the correct directory.If
path-map.csvis not listed, navigate to the folder by entering the following command (replacing the path with your actual directory path):cd "C:\full\path\to\your-extracted-folder"