mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-05-23 13:18:43 +00:00
FileSystem draft
This commit is contained in:
parent
ec8be81a53
commit
c5c334e542
|
|
@ -0,0 +1,28 @@
|
||||||
|
# Filesystem
|
||||||
|
|
||||||
|
The file system provides a simple way to handle operations on the file system. Supported environments are `local`, `ftp`, `git` as well as `aws`. The functionality is for all environments the same.
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
* `exists()`
|
||||||
|
* `delete()`
|
||||||
|
* `create()`
|
||||||
|
* `put()`
|
||||||
|
* `get()`
|
||||||
|
* `size()`
|
||||||
|
* `createdAt()`
|
||||||
|
* `modifiedAt()`
|
||||||
|
* `move()`
|
||||||
|
* `copy()`
|
||||||
|
* `list()`
|
||||||
|
* `directories()`
|
||||||
|
* `files()`
|
||||||
|
|
||||||
|
## Custom Implementations
|
||||||
|
|
||||||
|
Custom implementations can be created by implementing the FileSystemInterface. These implementations must get registered in the file system and can be used afterwards as the pre-defined implementations.
|
||||||
|
|
||||||
|
```
|
||||||
|
FileSystem::register('custom1', '\implementation\namespace');
|
||||||
|
FileSystem::env('custom1')->list();
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user