mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
15 lines
236 B
JavaScript
15 lines
236 B
JavaScript
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;
|