mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated find_or_make() documentation
See: https://github.com/silverstripe/silverstripe-framework/pull/2903#issuecomment-37252948
This commit is contained in:
parent
60bcce9921
commit
76e689b8c0
@ -40,11 +40,13 @@ class Folder extends File {
|
||||
|
||||
/**
|
||||
* Find the given folder or create it both as {@link Folder} database records
|
||||
* and on the filesystem. If necessary, creates parent folders as well.
|
||||
* and on the filesystem. If necessary, creates parent folders as well. If it's
|
||||
* unable to find or make the folder, it will return null (as /assets is unable
|
||||
* to be represented by a Folder DataObject)
|
||||
*
|
||||
* @param $folderPath string Absolute or relative path to the file.
|
||||
* If path is relative, its interpreted relative to the "assets/" directory.
|
||||
* @return Folder
|
||||
* @return Folder|null
|
||||
*/
|
||||
public static function find_or_make($folderPath) {
|
||||
// Create assets directory, if it is missing
|
||||
|
Loading…
Reference in New Issue
Block a user