Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomotools
tomwer
Commits
f0c00fc6
Commit
f0c00fc6
authored
6 years ago
by
Payno
Browse files
Options
Downloads
Patches
Plain Diff
[TomoDir] Add variable to avoid repeating logs when removing a folder
parent
372464b7
No related branches found
Branches containing commit
Tags
v0.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomwer/core/tomodir/_TomoDirProcess.py
+7
-2
7 additions, 2 deletions
tomwer/core/tomodir/_TomoDirProcess.py
with
7 additions
and
2 deletions
tomwer/core/tomodir/_TomoDirProcess.py
+
7
−
2
View file @
f0c00fc6
...
...
@@ -157,6 +157,7 @@ class _TomoDirProcess(OWClient, qt.QObject):
status on this step
"""
self
.
quitting
=
False
self
.
detector
=
self
.
DEFAULT_DETECTOR
self
.
_removed
=
None
srcPatternInvalid
=
srcPattern
not
in
[
None
,
''
]
and
not
os
.
path
.
isdir
(
srcPattern
)
destPatternInvalid
=
destPattern
not
in
[
None
,
''
]
and
not
os
.
path
.
isdir
(
destPattern
)
...
...
@@ -178,8 +179,12 @@ class _TomoDirProcess(OWClient, qt.QObject):
def
_removeAcquisition
(
self
,
scanID
,
reason
):
if
os
.
path
.
exists
(
scanID
)
and
os
.
path
.
isdir
(
scanID
):
logger
.
info
(
"
removing forlder %s because %s
"
%
(
scanID
,
reason
))
RSyncManager
().
removeDir
(
scanID
)
if
self
.
_removed
is
None
:
logger
.
info
(
"
removing forlder %s because %s
"
%
(
scanID
,
reason
))
RSyncManager
().
removeDir
(
scanID
)
# avoid multiple removal as removal is asynchronous and might
# fail
self
.
_removed
=
scanID
def
dir_explore
(
self
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment