freebox_api_php/docs/services/FileSystem/FileSystem.md

93 lines
3.1 KiB
Markdown
Raw Permalink Normal View History

2016-06-11 21:29:34 +02:00
# FileSystem
2016-06-11 23:16:01 +02:00
**Namespace** : alphayax\freebox\api\v3\services\FileSystem
# Overview
- [FileSystemListing](FileSystem.md#FileSystemListing)
2016-06-25 14:28:08 +02:00
- [FileSharingLink](FileSystem.md#FileSharingLink)
2016-06-11 23:16:01 +02:00
- [FileSystemTask](FileSystem.md#FileSystemTask)
- [FileUpload](FileSystem.md#FileUpload)
2016-06-25 14:28:08 +02:00
- [FileSystemOperation](FileSystem.md#FileSystemOperation)
2016-06-11 23:16:01 +02:00
2016-06-11 21:29:34 +02:00
2016-06-11 23:16:01 +02:00
<a name="FileSystemListing"></a>
2016-06-11 21:29:34 +02:00
## FileSystemListing
2016-06-11 23:16:01 +02:00
**Class** : alphayax\freebox\api\v3\services\FileSystem\FileSystemListing
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
| `getFilesFromDirectory` | Get all files in a given directory |
2016-06-11 21:29:34 +02:00
| `getFileInformation` | Get file information |
2016-06-25 14:28:08 +02:00
<a name="FileSharingLink"></a>
## FileSharingLink
2016-06-11 21:29:34 +02:00
2016-06-25 14:28:08 +02:00
**Class** : alphayax\freebox\api\v3\services\FileSystem\FileSharingLink
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
2016-06-25 14:28:08 +02:00
| `getAll` | Retrieve all File Sharing links |
| `getFromToken` | Get a file sharing link from his token identifier |
| `deleteFromToken` | Delete a File Sharing link for his token identifier Deletes the ShareLink task with the given token, if the task was running, stop it. |
| `create` | Create a File Sharing link |
2016-06-11 21:29:34 +02:00
2016-06-11 23:16:01 +02:00
<a name="FileSystemTask"></a>
2016-06-11 21:29:34 +02:00
## FileSystemTask
2016-06-11 23:16:01 +02:00
**Class** : alphayax\freebox\api\v3\services\FileSystem\FileSystemTask
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
2016-06-12 18:41:25 +02:00
| `getAllTasks` | Retrieve all FS tasks |
| `getTaskById` | Retrieve a FS task with the specified id |
| `deleteTask` | Delete a FS task |
| `deleteTaskById` | Delete a FS task with the specified id |
| `updateTask` | Update a FS task |
2016-06-11 21:29:34 +02:00
2016-06-11 23:16:01 +02:00
<a name="FileUpload"></a>
2016-06-11 21:29:34 +02:00
## FileUpload
2016-06-11 23:16:01 +02:00
**Class** : alphayax\freebox\api\v3\services\FileSystem\FileUpload
2016-06-11 21:29:34 +02:00
### Public methods
| Method | Description |
|---|---|
| `createAuthorization` | Create a file upload authorization |
| `uploadFile` | Send the content of the FileUpload task |
| `getAll` | Get the list of uploads |
| `getFromId` | Track an upload status |
2016-06-11 23:16:01 +02:00
| `cancelFromId` | Cancel the given FileUpload closing the connection The upload status must be in_progress |
2016-06-11 21:29:34 +02:00
| `deleteFromId` | Delete the given FileUpload closing the connection if needed |
| `cleanTerminated` | Deletes all the FileUpload not in_progress |
2016-06-25 14:28:08 +02:00
<a name="FileSystemOperation"></a>
## FileSystemOperation
**Class** : alphayax\freebox\api\v3\services\FileSystem\FileSystemOperation
### Public methods
| Method | Description |
|---|---|
| `move` | Move files |
| `copy` | Copy files |
| `remove` | Delete files |
| `cat` | Concatenate files (Miaw ^^) |
| `archive` | Create an archive |
| `extract` | Extract an archive |
| `repair` | Repair files from a .par2 |
| `computeHash` | Hash a file. This operation can take some time. To get the hash value, the returned task must have succeed and be in the state “done”. |
| `getHashValue` | Get the hash value To get the hash, the task must have succeed and be in the state “done”. |
| `createDirectory` | Create a directory Contrary to other file system tasks, this operation is done synchronously. |
| `rename` | Rename a file/folder Contrary to other file system tasks, this operation is done synchronously. |
| `download` | Download a file from the freebox server (return the file content) |