Login

Back

Hierarchical directory and file attributes

Introduction
A directory in computing is a way of organising files and folders. It also refers to a container that holds other directories and files. A directory is also known as a 'folder' and a directory inside another directory is called a 'subdirectory' or a 'subfolder'. A 'hierarchical directory' has folders organised like a tree structure so for example, you might have the hard drive called the C drive, which is called the 'root' because it is a container that doesn't sit inside any other container. Inside that, you may have 10 directories (folders). Each of those 10 folders may have more folders and / or some files, and each of those folders yet more files and folders. The directory structure looks like the roots of a tree fanning out, or a family tree.

Directories
Directories in a hierarchical structure are logically organised, which makes is easier to find things than if you just had lots of folders on your hard drive. The idea is that you keep creating subdirectories that are ever-more focussed on just one area. Then you store files in that subdirectory.
hier

For example, a student may have an area called 'My documents'. Inside that, they might set up a directory for each subject they take. Then in Computer Science, for example, they may create a subdirectory called A Level. Inside that, they create four subdirectories called Unit 1, Unit 2, Unit 3 and Unit 4. Inside Unit 1, they might have 12 more subdirectories, one for each topic in Unit 1. Then, they would start to store files relevant to each topic in their appropriate subdirectory. A year after they made notes on operating systems, they should still be able to find the files associated with that topic.

propertiesFile attributes
An attribute of a file is a property that that file has. You can set up the attributes of any file or any folder. In Windows, you right-click on the file and select properties.

For example, you can set up a file so that it is hidden. Many important system files are often hidden in this way automatically by the operating system when it was installed, to stop you accidentally deleting them. You can adjust the properties of a file if you want to so that you can view it but not edit or delete it. Sometimes, Network Managers set up general rules that stop certain types of file running. For example, many school Network Managers stop .exe and .bat files from running because they are a common way for networks to be infected with a virus or other malware.

Back