> For the complete documentation index, see [llms.txt](https://patryqhyper.gitbook.io/pterodactyl-php-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patryqhyper.gitbook.io/pterodactyl-php-sdk/api-client/server-greater-than-file-manager.md).

# Server -> File Manager

$client->client->server->files

### Get files

```php
$client->client->server->files->files(string $serverIdentifier, string $directory = '/');
```

### Get file content

```php
$client->client->server->files->contents(string $serverIdentifier, string $file);
```

### Download file

```php
$client->client->server->files->download(string $serverIdentifier, string $file);
```

### Rename file

```php
$client->client->server->files->rename(string $serverIdentifier, array $data);
```

### Copy file

```php
$client->client->server->files->copy(string $serverIdentifier, string $location);
```

### Write file

```php
$client->client->server->files->write(string $serverIdentifier, string $file, $content);
```

### Compress file

```php
$client->client->server->files->compress(string $serverIdentifier, array $data);
```

### Decompress file

```php
$client->client->server->files->decompress(string $serverIdentifier, array $data);
```

### Create folder

```php
$client->client->server->files->createFolder(string $serverIdentifier, array $data);
```

### Get upload url

```php
$client->client->server->files->getUploadUrl(string $serverIdentifier);
```
