Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ash-seviri
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ash
ash-seviri
Commits
cc01cd45
Commit
cc01cd45
authored
1 year ago
by
Espen Sollum
Browse files
Options
Downloads
Patches
Plain Diff
Added verbose
parent
f6087e1f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AshDetection/copy_hourly.py
+5
-1
5 additions, 1 deletion
AshDetection/copy_hourly.py
with
5 additions
and
1 deletion
AshDetection/copy_hourly.py
+
5
−
1
View file @
cc01cd45
...
...
@@ -20,6 +20,8 @@ SOURCE_DEST_DIRS = {
"
*0000_reg2d.nc
"
]
}
VERBOSE
=
0
def
copy_files
(
dry_run
=
False
):
...
...
@@ -38,8 +40,10 @@ def copy_files(dry_run=False):
if
not
os
.
path
.
isfile
(
dest
):
if
dry_run
:
# Print the files that would be copied
print
(
"
Copying file (from/to)
\n
"
,
src
,
dest
)
print
(
"
Dry run:
Copying file (from/to)
\n
"
,
src
,
dest
)
else
:
if
VERBOSE
>
0
:
print
(
"
Copying file (from/to)
\n
"
,
src
,
dest
)
shutil
.
copyfile
(
src
,
dest
)
except
Exception
as
e_err
:
# Things that can go wrong: no write permission,
...
...
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