Project

General

Profile

Actions

Bug #23032

closed

class.t3lib_extfilefunc.php func_copy can not move folder recursively on windows server (but func_move works)

Added by Jonas Felix over 14 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-06-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

class.t3lib_extfilefunc.php function func_copy can not move folder recursively on windows server...

If you move a folder with files in it the function func_copy returns "$this->writelog(2,2,130,'The item "%s" was not a file or directory!',Array($theFile));" on line 536

func_move works with the very same directory...

1.) Install TYPO3 on Windows
2.) Set 'dont_use_exec_commands' in install tool (as recommended for windows)
3.) create folder in fileadmin, and upload files into it
4.) copy folder in fileadmin in the filelist modules
5.) insert folder into another folder within fileadmin in the filelist module

The problem is within this line, which returns fals:
...
} elseif (@is_dir($theFile) && !$this->dont_use_exec_commands) {
...

$this->dont_use_exec_commands is true so it definitely hangs on the is_dir.
Maybe because there is a '/' on the end of the path.

Related to: http://bugs.typo3.org/view.php?id=7469
(issue imported from #M14910)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #18180: copy a folder fails in file moduleClosedChristian Kuhn2008-02-09

Actions
Actions

Also available in: Atom PDF