Permalink
Browse files

sconesite: Don't include article sources in get_files

  • Loading branch information...
sconemad committed Jun 3, 2017
1 parent 9c83f24 commit 989dc8f3c93bfdbdc5ede27248f44eb4826dbf09
Showing with 2 additions and 4 deletions.
  1. +2 −4 sconesite/Article.cpp
@@ -373,10 +373,8 @@ scx::ScriptRef* Article::script_method(const scx::ScriptAuth& auth,
scx::FileDir files(m_root);
while (files.next()) {
std::string file = files.name();
if (file != "." &&
file != ".." &&
file != "article.xml" && file != "article.xml~" &&
file != "meta.txt" && file != "meta.txt~") {
if (file[0] != '.' &&
file.find("article.") != 0) {
if (files.stat().is_dir()) {
// Ignore directories for now?
// filelist->give(scx::ScriptString::new_ref(file+"/"));

0 comments on commit 989dc8f

Please sign in to comment.