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
Main Repositories
otb
Commits
4e763e34
Commit
4e763e34
authored
Jul 05, 2016
by
Guillaume Pasero
Browse files
BUG: check if directory exists before searching in it
parent
5bfd3c9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp
View file @
4e763e34
...
...
@@ -684,7 +684,10 @@ namespace ossimplugins
{
ossimDirectory
calibrationDir
(
theManifestDirectory
.
dirCat
(
"annotation/calibration"
)
);
std
::
vector
<
ossimFilename
>
files
;
calibrationDir
.
findAllFilesThatMatch
(
files
,
"calibration*"
);
if
(
calibrationDir
.
isOpened
())
{
calibrationDir
.
findAllFilesThatMatch
(
files
,
"calibration*"
);
}
std
::
vector
<
ossimFilename
>::
const_iterator
it
=
files
.
begin
();
std
::
clog
<<
files
.
size
()
<<
" calibration files found in "
<<
theManifestDirectory
<<
"
\n
"
;
...
...
@@ -753,7 +756,10 @@ namespace ossimplugins
{
ossimDirectory
calibrationDir
(
theManifestDirectory
.
dirCat
(
"annotation/calibration"
)
);
std
::
vector
<
ossimFilename
>
files
;
calibrationDir
.
findAllFilesThatMatch
(
files
,
"noise*"
);
if
(
calibrationDir
.
isOpened
())
{
calibrationDir
.
findAllFilesThatMatch
(
files
,
"noise*"
);
}
std
::
vector
<
ossimFilename
>::
const_iterator
it
=
files
.
begin
();
const
char
noisePrefix
[]
=
"noise."
;
...
...
Write
Preview
Supports
Markdown
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