Linux Directory Structure
Linux Directory Structure
PHP Test
Create a Linux Folder Structure page displaying a hierarchical tree that begins
from root directory “/root”. The symbols “(+) (-)“, where “(+)” and “(-)“ are links.
Clicking on “(+)” should open a popup that asks for a name and whether the node
is a file or a directory. This rule applies to all nodes in the tree that are directories.
Clicking on “(-)“ removes selected file/directory, only empty directories can be
deleted. This rule applies to all nodes except “/root” directory. Make sure the
directories/files in the same level can’t have similar names, A warning message
should be displayed in case we try to create a folder/file with the same name in the
same level. Also there should be a functionality to rename files/directories. Write
PHP script to display and store hierarchical tree to MySQL DB. Do not use PHP
frameworks or libraries. Use standard PHP functions. For the front-end you can
use vuejs/angularjs/reactjs/knockoutjs/any other javascript framework.