Project

General

Profile

Actions

Bug #14303

closed

func_delete: error-message false

Added by Christian Hernmarck about 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
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

Also available in: Atom PDF