Kotlin files and paths
Build a receipt path, save a note, or read a shopping list.
Names and locations
- Path.name and parentPrint a receipt name and its folder
- Path.relativeToLink a course handout to a diagram
- Path.resolve and getFileNameBuild a receipt path without hard-coded separators
Read and write
- Files.readStringRead a saved shopping note
- Files.writeStringSave an item to a grocery note
- Path.readBytes and writeBytesRecover the brightest setting from a preset
Manage files and folders
- File.walkTopDownFind a receipt below the month folder
- Path.copyToKeep a separate copy of a receipt
- Path.createDirectoriesPrepare nested hand-in folders
- Path.deleteExistingClear a disposable print preview
- Path.listDirectoryEntriesCount only the invoices in a folder
- Path.moveToPublish a signed attendance sheet