-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
list_getAttachDirs
Description
Prepares the attachment directories for being displayed in the list.
Syntax
array list_getAttachDirs ()
Return value
Expected type: Array of arrays
Description: An array containing arrays of information about each attachment directory
Notes
- Gets the attachment directories from $modSettings['attachmentUploadDir']
- Calls attachDirStatus to check the status of each directory
- Returns an array of arrays, with each array containing information about an individual directory
- Each array in the returned array has the following keys: id (internal folder ID), current (whether or not this is the directory specified in $modSettings['currentAttachmentUploadDir']), path (path to the directory), current_size (size of all files in the directory), num_files (how many files SMF thinks are in the directory) and status (see attachDirStatus)
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.036 seconds with 13 queries.
- Forum Search