1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

sysadmin reconstruct repo page (#3980)

This commit is contained in:
Leo
2019-09-24 12:18:53 +08:00
committed by Daniel Pan
parent a68e28d034
commit d0e28c0365
24 changed files with 2486 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
class Dirent {
constructor(obj) {
this.name = obj.obj_name;
this.mtime = obj.last_update;
this.size = obj.file_size;
this.is_file = obj.is_file;
}
isDir() {
return !this.is_file;
}
}
export default Dirent;