Streamline usage of chmod() in FileSystem

Created on 7 February 2024, 7 months ago

Problem/Motivation

The FileSystem class has a chmod() method, which calls the PHP chmod() function.

However several of the other methods within the FileSystem class also call chmod() directly instead of using the internal function. There does not appear to be a reason for this practice. Using the chmod() method will add features such as logging of errors and other helpful elements which might be added down the line.

Steps to reproduce

N/A

Proposed resolution

Update all methods within the FileSystem class to call self::chmod() instead of calling chmod directly e.g. unlink(), mkdir(), rmdir()

Merge request link

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component
File system 

Last updated 1 day ago

Created by

🇩🇰Denmark kasperg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024