Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c19764e5
Commit
c19764e5
authored
Jan 10, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10568 from alalek:fix_10565
parents
71768de9
6113dc1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
filesystem.cpp
modules/core/src/utils/filesystem.cpp
+14
-2
No files found.
modules/core/src/utils/filesystem.cpp
View file @
c19764e5
...
...
@@ -41,6 +41,8 @@
#include <errno.h>
#endif
#endif // OPENCV_HAVE_FILESYSTEM_SUPPORT
namespace
cv
{
namespace
utils
{
namespace
fs
{
#ifdef _WIN32
...
...
@@ -80,6 +82,8 @@ cv::String join(const cv::String& base, const cv::String& path)
return
result
;
}
#if OPENCV_HAVE_FILESYSTEM_SUPPORT
bool
exists
(
const
cv
::
String
&
path
)
{
CV_INSTRUMENT_REGION
()
...
...
@@ -511,6 +515,14 @@ cv::String getCacheDirectory(const char* sub_directory_name, const char* configu
return
cache_path
;
}
}}}
// namespace
#else
#define NOT_IMPLEMENTED CV_ErrorNoReturn(Error::StsNotImplemented, "");
CV_EXPORTS
bool
exists
(
const
cv
::
String
&
/*path*/
)
{
NOT_IMPLEMENTED
}
CV_EXPORTS
void
remove_all
(
const
cv
::
String
&
/*path*/
)
{
NOT_IMPLEMENTED
}
CV_EXPORTS
bool
createDirectory
(
const
cv
::
String
&
/*path*/
)
{
NOT_IMPLEMENTED
}
CV_EXPORTS
bool
createDirectories
(
const
cv
::
String
&
/*path*/
)
{
NOT_IMPLEMENTED
}
CV_EXPORTS
cv
::
String
getCacheDirectory
(
const
char
*
/*sub_directory_name*/
,
const
char
*
/*configuration_name = NULL*/
)
{
NOT_IMPLEMENTED
}
#undef NOT_IMPLEMENTED
#endif // OPENCV_HAVE_FILESYSTEM_SUPPORT
}}}
// namespace
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