| 1 |
<?php |
| 2 |
|
| 3 |
namespace Mgleis\DiskUsageInsights\Domain; |
| 4 |
|
| 5 |
class FileEntry { |
| 6 |
|
| 7 |
const TYPE_DIR = 'dir'; |
| 8 |
const TYPE_FILE = 'file'; |
| 9 |
|
| 10 |
public int $id = 0; |
| 11 |
public int $parent_id = 0; // 0=no parent |
| 12 |
public string $name = ''; // dir=full path, file = relative name |
| 13 |
public string $type = 'file'; // dir|file |
| 14 |
public int $size = 0; // dir=0, file=file size |
| 15 |
public int $dir_size = 0; // only for dirs: size of all files in this directory |
| 16 |
public int $dir_recursive_size = 0; // only for dirs: size of all files in this and all sub directories |
| 17 |
public int $dir_count = 0; // only for dirs: number of files in this director |
| 18 |
public int $dir_recursive_count = 0; // only for dirs: number of files in this and all sub directories |
| 19 |
public int $last_modified_date = 0; |
| 20 |
public int $is_wp_core_file = 0; // 1=the file is a file belonging to the base wordpress installation |
| 21 |
|
| 22 |
} |
| 23 |
|