---
description: $client->client->server->files
---

# Server -> File Manager

### 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);
```

