Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
filefield_paths
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
filefield_paths
Merge requests
!30
Update file filefield_paths.inc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Update file filefield_paths.inc
issue/filefield_paths-2844420:2844420-modify-permissions-if
into
8.x-1.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
IMMACULATE X
requested to merge
issue/filefield_paths-2844420:2844420-modify-permissions-if
into
8.x-1.x
5 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#2844420
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
5f59afe7
1 commit,
5 months ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
filefield_paths.inc
+
1
−
1
Options
@@ -114,7 +114,7 @@ function filefield_paths_filefield_paths_process_file(ContentEntityInterface $en
// Finalize file if necessary.
if
(
$file
->
getFileUri
()
!==
$destination
&&
file_exists
(
$file
->
getFileUri
()))
{
$dirname
=
$file_system
->
dirname
(
$destination
);
$dir_exists
=
$file_system
->
prepareDirectory
(
$dirname
,
FileSystem
::
CREATE_DIRECTORY
);
$dir_exists
=
$file_system
->
prepareDirectory
(
$dirname
,
FileSystem
Interface
::
CREATE_DIRECTORY
|
FileSystemInterface
::
MODIFY_PERMISSIONS
)
&&
$new_file
=
$file_system
->
move
(
$file
,
$destination
);
if
(
!
$dir_exists
)
{
$logger
->
notice
(
'The directory %directory could not be created.'
,
[
'%directory'
=>
$dirname
]);
continue
;
Loading