JFolder::create
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JFolder::create[edit]
Description[edit]
Create a folder -- and all necessary parent folders.
public static function create (
$path= ''
$mode=0755
)
Parameter | Type | Default | Description |
---|---|---|---|
$path | string | A path to create from the base path. | |
$mode | int | 0755 | Directory permissions to set for folders created. |
- Returns boolean True if successful.
- Defined on line 156 of libraries/joomla/filesystem/folder.php
- Since
- Referenced by
- JArchiveZip::_extract
- JArchiveZip::_extractNative
- JInstallerLanguage::_install
- JFile::copy
- JArchiveTar::extract
- JArchive::extract
- JLoggerFormattedText::initFile
- JInstallerTemplate::install
- JInstallerPlugin::install
- JInstallerLibrary::install
- JInstallerComponent::install
- JInstallerModule::install
- JInstallerFile::install
- JInstaller::parseFiles
- JInstaller::parseLanguages
- JInstaller::parseMedia
- JInstallerComponent::update
- JFile::upload
- JFile::write
- JDaemon::writeProcessIdFile
See also[edit]
- JFolder::create source code on BitBucket
- Class JFolder
- Subpackage Filesystem
- Other versions of JFolder::create
User contributed notes[edit]
Code Examples[edit]