Function attachDirStatus
Checks the status of an attachment directory and returns an array of the status key, if that status key signifies an error, and the file count.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/ManageAttachments.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/ManageAttachments.php
string |
$dir |
The directory to check |
integer |
$expected_files |
How many files should be in that directory |
array
|
An array containing the status of the directory, whether the number of files was what we expected and how many were in the directory |