1 | <?php namespace Limoncello\Application\FileSystem; |
||
26 | class FileSystem implements FileSystemInterface |
||
27 | { |
||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function exists(string $path): bool |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | public function read(string $filePath): string |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function write(string $filePath, string $contents) |
||
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | public function delete(string $filePath) |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | public function scanFolder(string $folderPath): array |
||
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | public function isFolder(string $path): bool |
||
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | public function createFolder(string $folderPath) |
||
102 | |||
103 | /** |
||
104 | * @inheritdoc |
||
105 | */ |
||
106 | public function deleteFolder(string $folderPath) |
||
111 | |||
112 | /** |
||
113 | * @inheritdoc |
||
114 | */ |
||
115 | public function deleteFolderRecursive(string $folderPath) |
||
123 | |||
124 | /** |
||
125 | * @inheritdoc |
||
126 | */ |
||
127 | public function requireFile(string $path) |
||
134 | |||
135 | /** |
||
136 | * @param FileSystemException $exception |
||
137 | * |
||
138 | * @return void |
||
139 | */ |
||
140 | protected function throwEx(FileSystemException $exception) |
||
144 | } |
||
145 |