The beginning of a Scala “FileUtils” class
By Alvin Alexander. Last updated: September 21 2019
In production code I recommend that you use a good “Files” library like Apache Commons IO, but if you want to create your own Scala FileUtils class, here’s some source code that can help you get started.
First, here’s some code for the FileUtils class (an object
, technically):