CMD_FILE_MANAGER: action=parent_tree

Version 1.56

Feature
Finished

For json calls like this: CMD_FILE_MANAGER?json=yes&path=/domains/test.com&action=parent_tree Returns 1 level of everything the current branch touches, but not lower. This will be much faster for navigation trees, vs action=tree. Sample output: [ { "path": "/domains/test.com/public_html", "dirs": 1, "files": 12, "files_size": 12949 }, { "path": "/domains/test.com/.htpasswd", "dirs": 0, "files": 1, "files_size": 0 }, { "path": "/domains/test.com/private_html", "dirs": 0, "files": 1, "files_size": 206 }, { "path": "/domains/test.com/public_ftp", "dirs": 1, "files": 0, "files_size": 0 }, { "path": "/domains/test.com/stats", "dirs": 0, "files": 29, "files_size": 315070 }, { "path": "/domains/test.com/logs", "dirs": 0, "files": 5, "files_size": 7979 }, { "path": "/domains/test.com", "dirs": 6, "files": 1, "files_size": 9703385 }, { "path": "/domains/test2.com", "dirs": 0, "files": 0, "files_size": 0 }, { "path": "/domains", "dirs": 1, "files": 0, "files_size": 0 }, { "path": "/.php", "dirs": 0, "files": 5, "files_size": 0 }, { "path": "/imap", "dirs": 1, "files": 0, "files_size": 0 }, { "path": "/tmp", "dirs": 0, "files": 1, "files_size": 56 }, { "path": "/.spamassassin", "dirs": 0, "files": 1, "files_size": 99 }, { "path": "/Maildir", "dirs": 1, "files": 1, "files_size": 11 }, { "path": "/.ssh", "dirs": 0, "files": 1, "files_size": 417 }, { "path": "/", "dirs": 7, "files": 5, "files_size": 509 } ] Where it prints lists: - all subfoldres of current path - all subfolders of each parent path, including /

Interested to try DirectAdmin? Get a 30-day Free Trial!