Mercurial > hg > orthanc
diff Plugins/Samples/ServeFolders/Plugin.cpp @ 1911:7a05144cb919
fix issue #11
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 28 Jan 2016 17:07:22 +0100 |
parents | b1291df2f780 |
children | 8856f15b3e02 |
line wrap: on
line diff
--- a/Plugins/Samples/ServeFolders/Plugin.cpp Fri Jan 15 17:31:00 2016 +0100 +++ b/Plugins/Samples/ServeFolders/Plugin.cpp Thu Jan 28 17:07:22 2016 +0100 @@ -198,7 +198,10 @@ for (fs::directory_iterator it(parent) ; it != end; ++it) { - if (fs::is_regular_file(it->status())) + fs::file_type type = it->status().type(); + + if (type == fs::regular_file || + type == fs::reparse_file) // cf. BitBucket issue #11 { std::string f = it->path().filename().string(); s += " <li><a href=\"" + f + "\">" + f + "</a></li>\n";