What does the file system path consist of?
Experience Level: Junior
Tags: File System
Answer
The file system path consists of the following parts:
- Disk drive
- One or more folders (also called as directories)
- File name with file extension
As an example, see the following path:
c:\users\john.doe\Download\my-document.txt
c:
is the disk driveusers
is the directoryjohn.doe
is the subdirectory that is stored in the parent directory usersDownload
is the subdirectory that is stored in the parent directory john.doemy-document.txt
is the full file that is stored in the directory Downloadmy-document
is the file nametxt
is the file extension (the.
(dot) character is used as a delimiter between the file name and the file extension)
Note that the directories (folders) are delimited by the \
(backslash) character.
Related Other job interview questions
What is a root directory (folder)?
File System JuniorWhat is an absolute path, a relative path and what is the difference between them?
File System JuniorWhat is a file system path?
File System Junior