Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
dafd0076
Commit
dafd0076
authored
Nov 12, 2020
by
Romain Therville
🐭
Browse files
Update to class.tx_nG6_utils.php
Function purge_directory updated to exclude log files. issue
#190
parent
a398dbee
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/lib/class.tx_nG6_utils.php
View file @
dafd0076
...
@@ -160,7 +160,7 @@ class tx_nG6_utils {
...
@@ -160,7 +160,7 @@ class tx_nG6_utils {
return
0
;
return
0
;
}
}
$stream
=
ssh2_exec
(
$connection
,
'find '
.
$directory
.
' -maxdepth 1 -not -name "*.html" -not -name "*.png" -type f -exec rm -f {} \;'
);
$stream
=
ssh2_exec
(
$connection
,
'find '
.
$directory
.
' -maxdepth 1 -not -name "*.html" -not -name "*.png"
-not -name "*.log" -not -name "*.log.gz" -not -name "*.pdf" -not -name "md5sum.txt" -not -name "*GXB02039*" -not -name "*PCT0078*"
-type f -exec rm -f {} \;'
);
$errorStream
=
ssh2_fetch_stream
(
$stream
,
SSH2_STREAM_STDERR
);
$errorStream
=
ssh2_fetch_stream
(
$stream
,
SSH2_STREAM_STDERR
);
// Enable blocking for both streams
// Enable blocking for both streams
stream_set_blocking
(
$errorStream
,
true
);
stream_set_blocking
(
$errorStream
,
true
);
...
...
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