Join Kevin Skoglund for an in-depth discussion in this video Types of file paths, part of Ruby: Files, Formats, Templates.
- [Instructor] In the previous movie,…we learned how to describe the path to files and directories…so that our code can work with them.…In this movie, we will learn about…two different types of file paths.…Paths to files can be described using…something called an absolute path.…That is the path to a file or directory…starting from the root of the hard drive.…We can recognize an absolute path…because it begins with a file separator.…Most of the time that's going to be a forward slash…but it could be a back slash in some versions of Windows.…Paths to files can also be described…using something called a relative path.…
A relative path gives the location…relative to the current location.…We can recognize a relative path…because it does not begin with a file separator.…Instead it usually starts with a directory name…or a single period or a double period.…The single period indicates the current directory.…The double period indicates the parent directory…of the current directory.…So in the example shown here, it means…
- File system basics
- Writing to and reading from files
- Renaming, deleting, and copying files
- Creating and editing directories
- Working with common data formats
- ERB templating
Skill Level Beginner
Ruby on Rails 5 Essential Trainingwith Kevin Skoglund10h 21m Beginner
1. The File System
2. Work with Files
3. Work with Directories
4. Common Data Formats
5. ERB Templating
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.