StorageFolderManager class
package |
Default |
---|
__construct(string $storageFolderRoot = '')
The storage folder is a file system location where we store all our required application data. It is organized as a standardized set of files and folders which are used to save the most commonly required application data, just like logs, temporary files, executable binaries, extra libraries, cached data, custom files, application data, etc..
By defining a standard organization for all this information, we improve the structure and cleanliness of our project. And a faster learning curve when switching between projects.
string
The full file system path to the root of the folder that we want to use as the storage folder. all the required structure of folders and files must exist or this class will throw several errors.
getPathToCache() : string
string
getPathToCustom() : string
string
getPathToData() : string
string
getPathToExecutable() : string
string
getPathToRoot() : string
string
validateFolderStructure()
If any element is missing or incorrect, an exception with the error details will be thrown.
Throws |
|
---|