> For the complete documentation index, see [llms.txt](https://motivlabs.gitbook.io/impulse-user-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motivlabs.gitbook.io/impulse-user-manual/cookbook-recipes/changing-a-folder-path.md).

# Changing a folder path

## Case

Assume the source system has assets along a long folder path. But the destination system only allows a few nested folders.&#x20;

To fully sync these assets we need to be able to:&#x20;

1. Adjust what folders will be created
2. Adjust where the assets will live

## Solution

ImpulseSync can solve this with the [folder manipulator](/impulse-user-manual/content-manipulators-motators/folder-manipulator.md).&#x20;

In this example there is a single folder path that includes 6 folders. We want to only keep the last folder as the folder at the destination. So we need to replace the folder path and remove all the other folders.&#x20;

This can be done with a single job with two folder manipulators.&#x20;

First set up the job to pickup the assets.&#x20;

Then the first folder manipulator config is to replace the folder path where the assets currently live at the source to where they should live at the destination.&#x20;

<figure><img src="https://651785290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnLYwCtfZtrK4s43AVzb4%2Fuploads%2FHsUH8MGV4sT2CaVE2Ouz%2Fimage.png?alt=media&amp;token=fe22a364-9149-4107-bcfd-c414f09eb8a6" alt=""><figcaption></figcaption></figure>

The second folder manipulator config is to remove all the other folder paths. This way no other folders will be created at the destination.&#x20;

<figure><img src="https://651785290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnLYwCtfZtrK4s43AVzb4%2Fuploads%2FY7e6TYHeOD2m8TVLpKGW%2Fimage.png?alt=media&amp;token=5eeaf08d-8072-4be4-a4ec-107a9ebd2c3d" alt=""><figcaption></figcaption></figure>

Once the job runs, the destination will have a single folder with the assets in that folder.&#x20;

<figure><img src="https://651785290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnLYwCtfZtrK4s43AVzb4%2Fuploads%2FoTxUqGX7T4BVcBPjaAAs%2Fimage.png?alt=media&amp;token=f5b60424-01a1-4423-bdc0-5d2dfb7bd8ac" alt=""><figcaption></figcaption></figure>

<figure><img src="https://651785290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnLYwCtfZtrK4s43AVzb4%2Fuploads%2F0AGMNBzto1aGeZGFL2oI%2Fimage.png?alt=media&amp;token=152c6a94-b7f8-4ab7-bada-1df2e08714d6" alt=""><figcaption></figcaption></figure>
