LEPTON CMS 7.0.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
function.rename_recursive_dirs.php File Reference

Go to the source code of this file.

Functions

 rename_recursive_dirs (string $dirsource, string $dirdest, int $deep=0)
 

Variables

if(!defined("SEC_FILE")) if(defined('LEPTON_PATH')) else
 
 $root = $oneback
 
 $level = 1
 

Function Documentation

◆ rename_recursive_dirs()

rename_recursive_dirs ( string  $dirsource,
string  $dirdest,
int  $deep = 0 
)

Recursive function to rename all subdirectories and contents (PHP-function "rename" did not work on all windows installations)

Parameters
string$dirsourceA valid path to the source directory
string$dirdestA valid path to the destination directory
int$deepCounter for the recursion-deep. Default is 0.
Returns
bool
Examples
C:/Develope/SVN/upload/framework/classes/lepton_handle.php.

Definition at line 49 of file function.rename_recursive_dirs.php.

Variable Documentation

◆ $level

$level = 1

Definition at line 25 of file function.rename_recursive_dirs.php.

◆ $root

$root = $oneback

Definition at line 24 of file function.rename_recursive_dirs.php.

◆ else

while(($level< 10) &&(!file_exists($root.SEC_FILE))) if (file_exists( $root.SEC_FILE)) else
Initial value:
{
$oneback = "../"

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project

Definition at line 22 of file function.rename_recursive_dirs.php.