> For the complete documentation index, see [llms.txt](https://tools.continis.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tools.continis.io/hats/workspaces/workspace-rules/lock-folders.md).

# Lock Folders

Use this rule to prevent access to certain folders in the project.

<figure><img src="https://3932909560-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJbMi1RQ5OkWEfZdkCUEX%2Fuploads%2FtDvXJ8TsKSFzRAmciCpW%2FLockFolders.png?alt=media&amp;token=38a0518b-e370-4873-80e9-06d80fc27c7e" alt="" width="563"><figcaption></figcaption></figure>

### On workspace enabled

The specified folders get disabled and greyed out in the Project view. You won't be able to select, move, rename them; or to drag/drop items onto them.

<figure><img src="https://3932909560-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJbMi1RQ5OkWEfZdkCUEX%2Fuploads%2F1HkM4mvyG98Pbfrmj4bl%2FLockedFolders.png?alt=media&amp;token=9f66110f-2866-45a1-abbb-66b0aca92b00" alt="" width="375"><figcaption><p>Art, Audio and Samples folder are disabled</p></figcaption></figure>

### On workspace disabled

The disabled folders are enabled again.

{% hint style="info" %}
You can specify an **entire path** by chaining folders with a "/" character. Make sure to enter the folder's path without the "Assets/" part.

Note that all sub-folders will be disabled too.
{% endhint %}

{% hint style="warning" %}
Note that **certain operations are** **still possible** on disabled folders, like for instance saving a file into them, or moving files into them using the OS File Manager. The disabling is purely a UI lock in Unity's Project view.
{% endhint %}
