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:
14
frontend/src/models/system-admin/dirent.js
Normal file
14
frontend/src/models/system-admin/dirent.js
Normal 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;
|
Reference in New Issue
Block a user