Concept
How can you refer to directories and files at different levels of a directory tree?
ComputerScienceOne / Error Handling
"this to specify directories deeper in the directory tree from the current directory. For example (in Unix), ./app/data/data.txt would refer to the directory app in the current working directory, the directory data within that, and finally the file data.txt within that directory. We can also refer to files further up the directory tree using the “parent” directory symbol which is two periods, .. . For example, ../../system/data.txt would refer to a file two levels up in the subdirectory system ."
Related Ideas
- What is the difference between absolute and relative file paths?ComputerScienceOne · Paths
- How do file names, extensions, and working directories affect file paths?ComputerScienceOne · Paths
- How is the Linux file system organized?ComputerScienceOne · Error Handling
- How do you open and validate files in PHP?ComputerScienceOne · Opening Files
- What is 22?ComputerScienceOne · Opening Files
- How can a Scanner read input from a file?ComputerScienceOne · File Input
- How are files read, written, and properly managed?ComputerScienceOne · Paths
- How should you close files in C?ComputerScienceOne · Closing Files