From c5c334e54250d5003bc049b9c4feaa9c956f3227 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 12 Aug 2016 11:59:11 +0200 Subject: [PATCH] FileSystem draft --- services/filesystem.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/services/filesystem.md b/services/filesystem.md index e69de29..12c959e 100644 --- a/services/filesystem.md +++ b/services/filesystem.md @@ -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(); +``` \ No newline at end of file