[skip ci]wip file_walker reading article info
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
|
||||
## If you see this page, that means it's working
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
@@ -26,9 +26,14 @@ const fileTree = (path, cb) => {
|
||||
});
|
||||
};
|
||||
|
||||
const readIndexFile = (path,cb) => {
|
||||
//TODO reading page title and possibly 
|
||||
};
|
||||
|
||||
module.exports = (config) => {
|
||||
return {
|
||||
fileTree: config['test'] ? fileTree : undefined,
|
||||
readIndexFile: config['test'] ? readIndexFile : undefined,
|
||||
fetchArticles: (cb) => {
|
||||
fileTree(config['data_dir'], (err, fileList) => {
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user