Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ITS Missing-Files Cleanup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christoph Hofmann
ITS Missing-Files Cleanup
Commits
13fe30de
Commit
13fe30de
authored
Oct 11, 2018
by
Christoph Hofmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f9179124
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Classes/Command/CleanupFiles.php
Classes/Command/CleanupFiles.php
+8
-0
No files found.
Classes/Command/CleanupFiles.php
View file @
13fe30de
...
...
@@ -147,6 +147,10 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
$count
=
0
;
while
(
$row
=
$statement
->
fetch
())
{
$count
++
;
if
(
$row
[
'uid'
]
==
1077
)
{
debug
(
'1077'
);
debug
(
$file
->
getParentFolder
());
}
$identifier
=
$row
[
'storage'
]
.
':'
.
$row
[
'identifier'
];
$moveOK
=
false
;
$file
=
null
;
...
...
@@ -336,6 +340,10 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
private
function
checkMoveOK
(
\
TYPO3\CMS\Core\Resource\File
$file
)
{
$st
=
$file
->
getStorage
();
try
{
$file
->
getParentFolder
();}
catch
(
Exception\FolderDoesNotExistException
$e
)
{
return
false
;
}
if
(
$file
->
getParentFolder
()
->
getIdentifier
()
==
$st
->
getRootLevelFolder
()
->
getIdentifier
())
{
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment