EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
d28b76a1
Commit
d28b76a1
authored
4 years ago
by
Lubomir Dolezal
Browse files
Options
Downloads
Patches
Plain Diff
some minor fixes, uploading also content of 'extra' folder
parent
78a1b35c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preprocessor/preprocessor/preprocess.py
+11
-8
11 additions, 8 deletions
preprocessor/preprocessor/preprocess.py
with
11 additions
and
8 deletions
preprocessor/preprocessor/preprocess.py
+
11
−
8
View file @
d28b76a1
...
...
@@ -223,12 +223,14 @@ def preprocess_file(config: dict, file_path: os.PathLike, use_dir: os.PathLike=N
uploader
=
get_uploader
(
target_config
[
'
type
'
],
target_config
.
get
(
'
args
'
),
target_config
.
get
(
'
kwargs
'
)
)
upload_filenames
=
[
os
.
path
.
join
(
dirpath
,
filename
)
for
dirpath
,
_
,
filenames
in
os
.
walk
(
'
upload
'
)
for
filename
in
filenames
]
paths_for_upload
=
[
'
upload
'
,
'
extra
'
]
upload_filenames
=
[]
for
path_to_upload
in
paths_for_upload
:
upload_filenames
.
extend
([
os
.
path
.
join
(
dirpath
,
filename
)
for
dirpath
,
_
,
filenames
in
os
.
walk
(
path_to_upload
)
for
filename
in
filenames
])
# send all files in the upload directory to the target storage
logger
.
info
(
...
...
@@ -285,10 +287,11 @@ def preprocess_browse(config: dict, browse_type: str, browse_report: dict, brows
# TODO: check if allowed and download from there
raise
NotImplementedError
os
.
mkdir
(
'
unpack
'
)
if
not
os
.
path
.
isdir
(
'
unpack
'
):
os
.
mkdir
(
'
unpack
'
)
logger
.
info
(
'
Applying browse georeference to browse %s
'
%
filename
)
browse_georeference
(
'
download
'
,
'
unpack
'
,
browse_
type
,
browse
)
browse_georeference
(
'
download
'
,
'
unpack
'
,
browse_
report
,
browse
)
# fetch the product type from the browse_type
...
...
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