API17:JPath::clean
From Joomla! Documentation
JPath::clean
Description
Function to strip additional / or \ in a path name.
public static function clean (
$path
$ds=DIRECTORY_SEPARATOR
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $path | string | The path to clean | |
| $ds | string | DIRECTORY_SEPARATOR | Directory separator (optional) |
- Returns string The cleaned path
- Defined on line 167 of libraries/joomla/filesystem/path.php
- Since

- Referenced by
- JArchiveZip::_extract
- JElementModuleLayouts::_getOptions
- JElementComponentLayouts::_getOptions
- JHtml::addIncludePath
- JCacheStorage::addIncludePath
- JCache::addIncludePath
- JModel::addIncludePath
- JCacheController::addIncludePath
- check
- JInstallerHelper::cleanupInstall
- JFolder::copy
- JFile::copy
- JInstaller::copyFiles
- JFolder::create
- JFolder::delete
- JFile::delete
- JInstallerComponent::discover_install
- JFolder::exists
- JFile::exists
- JArchiveTar::extract
- JArchive::extract
- JFolder::files
- JFolder::folders
- JFormFieldModuleLayout::getInput
- JFormFieldComponentLayout::getInput
- getPermissions
- JInstallerComponent::install
- JInstallerFile::install
- JFolder::listFolderTree
- JFolder::move
- JFile::move
- JInstaller::parseMedia
- JInstallerComponent::uninstall
- JInstallerFile::uninstall
- JInstallerHelper::unpack
- JInstallerComponent::update
- JFile::upload
- JFile::write
See also
JPath::clean source code on BitBucket
Class JPath
Subpackage Filesystem- Other versions of JPath::clean
User contributed notes
Code Examples