fix netfs issues - implement fs.attributes

This commit is contained in:
kepler155c@gmail.com
2020-04-27 15:44:09 -06:00
parent d72ae3de4a
commit e116caf16e
8 changed files with 78 additions and 52 deletions

View File

@@ -11,6 +11,17 @@ function urlfs.mount(_, url)
end
return {
url = url,
created = os.epoch('utc'),
modification = os.epoch('utc'),
}
end
function urlfs.attributes(node)
return {
created = node.created,
isDir = false,
modification = node.modification,
size = node.size or 0,
}
end