Ruby files and paths
Build a receipt path, save a note, or read a shopping list.
Names and locations
- File.basename and dirnamePrint a receipt name and its folder
- File.join and File.basenameBuild a receipt path without hard-coded separators
- Pathname.relative_path_fromLink a course handout to a diagram
Read and write
- File.binread and binwriteRecover the brightest setting from a preset
- File.readRead a saved shopping note
- File.writeSave an item to a grocery note
Manage files and folders
- Dir.childrenCount only the invoices in a folder
- Dir.globFind a receipt below the month folder
- File.deleteClear a disposable print preview
- File.open with EXCLStop two desks claiming the same ticket
- File.renamePublish a signed attendance sheet
- FileUtils.cpKeep a separate copy of a receipt
- FileUtils.mkdir_pPrepare nested hand-in folders