mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
@@ -59,6 +59,19 @@ class Dirent {
|
||||
return this.type !== 'file';
|
||||
}
|
||||
|
||||
toJson() {
|
||||
return {
|
||||
id: this.id,
|
||||
name: this.name,
|
||||
mtime: this.mtime,
|
||||
type: this.type,
|
||||
size: this.size,
|
||||
modifier_name: this.modifier_name,
|
||||
modifier_email: this.modifier_email,
|
||||
modifier_contact_email: this.modifier_contact_email,
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default Dirent;
|
||||
|
Reference in New Issue
Block a user