# Disabling The Too Large Directory "First 250 Files" Limiter

<span style="color: rgb(0, 0, 0);">By default, the panel limits any directory on a server container to 250 files and folders at any given time in a single view. This is done to improve page loading performance, but can be majorly inconvenient for hosting companies or for networks with large file collections stored in flat format. </span>

<span style="color: rgb(0, 0, 0);">Go into /var/www/pterodactyl and edit the following file:</span>

```bash
cd /var/www/pterodactyl
nano resources/scripts/components/server/files/FileManagerContainer.tsx
```

<span style="color: rgb(0, 0, 0);">Locate the following code:</span>

```php
<div>
    {files.length > 250 && (
        <div css={tw`rounded bg-yellow-400 mb-px p-3`}>
            <p css={tw`text-yellow-900 text-sm text-center`}>
                This directory is too large to display in the browser, limiting the output
                to the first 250 files.
            </p>
        </div>
    )}
    {sortFiles(files.slice(0, 250)).map((file) => (
        <FileObjectRow key={file.key} file={file} />
    ))}
    <MassActionsBar />
</div>
```

<span style="color: rgb(0, 0, 0);">Replace it with:</span>

```php
<div>
    {sortFiles(files).map((file) => (
        <FileObjectRow key={file.key} file={file} />
    ))}
    <MassActionsBar />
</div>
```

<p class="callout info"><span style="color: rgb(0, 0, 0);">You can also simply update the code at ![image.png](https://docs.jasmeow.systems/uploads/images/gallery/2024-03/scaled-1680-/7HTVha956UN2qDtt-image.png) and at ![image.png](https://docs.jasmeow.systems/uploads/images/gallery/2024-03/scaled-1680-/WCPZ5nNc27IMCmBu-image.png) to be a higher number, so the limiter is still in effect. Make sure to update the reason it displays to not confuse clients or other staff members.</span></p>

<span style="color: rgb(0, 0, 0);">Build the panel assets from the following Pterodactyl guide - <span style="color: rgb(0, 139, 255);">[https://pterodactyl.io/community/customization/panel.html](https://pterodactyl.io/community/customization/panel.html) </span></span>

<span style="color: rgb(0, 0, 0);">Once done, you should see the directory no longer have the yellow banner along the top.</span>