1 | <?php namespace Limoncello\Application\FileSystem; |
||
28 | class FileSystem implements FileSystemInterface |
||
29 | { |
||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function exists(string $path): bool |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | public function read(string $filePath): string |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function write(string $filePath, string $contents): void |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | public function delete(string $filePath): void |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function scanFolder(string $folderPath): array |
||
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | public function isFolder(string $path): bool |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function createFolder(string $folderPath): void |
||
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | public function deleteFolder(string $folderPath): void |
||
113 | |||
114 | /** |
||
115 | * @inheritdoc |
||
116 | */ |
||
117 | public function deleteFolderRecursive(string $folderPath): void |
||
125 | |||
126 | /** |
||
127 | * @inheritdoc |
||
128 | */ |
||
129 | public function symlink(string $targetPath, string $linkPath): void |
||
134 | |||
135 | /** |
||
136 | * @inheritdoc |
||
137 | */ |
||
138 | public function requireFile(string $path) |
||
145 | |||
146 | /** |
||
147 | * @param FileSystemException $exception |
||
148 | * |
||
149 | * @return void |
||
150 | */ |
||
151 | protected function throwEx(FileSystemException $exception) |
||
155 | } |
||
156 |