diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-13 22:07:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-13 22:07:47 +0200 |
| commit | 550794a2a289c4d738292ab74639e1496f55e07e (patch) | |
| tree | 92c27551a56b273cef82e154c8fca5c242277b4c | |
| parent | 458517981bbb6d8a76b2769ac824daa29c691d35 (diff) | |
Cleanup: use a namespace.
| -rw-r--r-- | src/lib/dcp_content.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index e7bef573b..87e59de50 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -192,16 +192,18 @@ DCPContent::read_directory (boost::filesystem::path p) void DCPContent::read_sub_directory (boost::filesystem::path p) { + using namespace boost::filesystem; + LOG_GENERAL ("DCPContent::read_sub_directory reads %1", p.string()); - for (auto i: boost::filesystem::directory_iterator(p)) { - if (boost::filesystem::is_regular_file(i.path())) { + for (auto i: directory_iterator(p)) { + if (is_regular_file(i.path())) { LOG_GENERAL ("Inside there's regular file %1", i.path().string()); add_path (i.path()); - } else if (boost::filesystem::is_directory(i.path()) && i.path().filename() != ".AppleDouble") { + } else if (is_directory(i.path()) && i.path().filename() != ".AppleDouble") { LOG_GENERAL ("Inside there's directory %1", i.path().string()); read_sub_directory (i.path()); } else { - LOG_GENERAL("Ignoring %1 from inside: status is %2", i.path().string(), static_cast<int>(boost::filesystem::status(i.path()).type())); + LOG_GENERAL("Ignoring %1 from inside: status is %2", i.path().string(), static_cast<int>(status(i.path()).type())); } } } |
