No Code Attached Yet
avatar parapente
parapente
5 Dec 2023

I updated an old site to Joomla 4 and while trying to update an old component I ran across the error message "Failed deleting inaccessible file...". Forcing File::delete to log the file requested for deletion I found that the error was appearing when Joomla tried to remove non-existent files. Path::canChmod returns false if the file doesn't exist so File::delete throws an exception with the above-mentioned message. If a file is requested for deletion and it already doesn't exist, wouldn't be better if the File::delete method returned true?

avatar parapente parapente - open - 5 Dec 2023
avatar parapente parapente - change - 5 Dec 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Dec 2023
avatar brianteeman
brianteeman - comment - 5 Dec 2023

surely that would just hide an error.

avatar alikon alikon - change - 11 Dec 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-12-11 17:52:21
Closed_By alikon
avatar alikon alikon - close - 11 Dec 2023
avatar alikon
alikon - comment - 11 Dec 2023

same as #42495
please continue there #42495

Add a Comment

Login with GitHub to post a comment