Overview
Comment: | Fix dot-directories issue |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable | 1.1.10 |
Files: | files | file ages | folders |
SHA3-256: |
811e54d7d8b47ab0e83383b909ed5726 |
User & Date: | bohwaz on 2021-07-16 17:30:42 |
Other Links: | manifest | tags |
Context
2021-07-16
| ||
17:38 | Fix update when non-official directories exist in the files storage check-in: 578805a539 user: bohwaz tags: trunk, stable, 1.1.10 | |
17:30 | Fix dot-directories issue check-in: 811e54d7d8 user: bohwaz tags: trunk, stable, 1.1.10 | |
17:16 | Fix search sync with files check-in: 4b346293f7 user: bohwaz tags: trunk, stable, 1.1.10 | |
Changes
Modified src/include/lib/Garradin/Files/Storage/FileSystem.php from [4a48791632] to [286067b967].
︙ | |||
200 201 202 203 204 205 206 207 208 209 210 211 212 213 | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | + + + + + | if (!file_exists($fullpath)) { return []; } $files = []; foreach (new \FilesystemIterator($fullpath, \FilesystemIterator::SKIP_DOTS) as $file) { // Seems that SKIP_DOTS does not work all the time? if ($file->getFilename()[0] == '.') { continue; } // Used to make sorting easier // directory_blabla // file_image.jpeg $files[$file->getType() . '_' .$file->getFilename()] = self::_SplToFile($file); } return Utils::knatcasesort($files); |
︙ |