Actions
Bug #14303
closedfunc_delete: error-message false
Start date:
2004-09-01
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Whe trying to delete a single empty directory, without exec_commands enabled a message appears:
"The item was not a file or directory"
But it is!
The error is on line 636 - see additional information.
the detection if file or directory:
00625 if (@is_file($theFile)) {
...
00636 } elseif (@is_dir($theFile) && !$this->dont_use_exec_commands) {
...
00661 } else $this->writelog(4,2,130,"The item was not a file or directory! '%s'",Array($theFile));
do, the message should be:
"The item was not a file or directory or exec_commands are disabled" - better: test the exec_commands only if they are used (recursively deleting).
(issue imported from #M335)
Actions