Fix sandboxing(#2)

This commit is contained in:
2019-05-24 11:25:10 +05:30
parent 29de9a63f9
commit e39c28539e
3 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ module.exports.dirprocess = (dirstream,location,settings)=>{
{
contents.push({
"name":element.name,
"path":path.normalize(path.join(location,element.name)) ,
"path":path.relative(settings.dirname,path.normalize(path.join(location,element.name))) ,
"isDir": element.isDirectory()
})
}