All Questions
Tagged with scala file-system
7 questions
1
vote
1
answer
373
views
Count lines of scala code (omitting empty lines) in a directory, traversing any subdirectories
I need to simply count lines of Scala code in a project, which includes some package(i.e. directory) hierarchy.
I'm not sure about the performance of the code below. Can you help improve it, if ...
2
votes
0
answers
178
views
Frequency of words in all files of a directory using Future - Scala
I created a program to get frequency of word in all files in a directory using Future API
...
3
votes
1
answer
4k
views
List of Files in any Folder - Scala
I have written a code to count the number of files in a folder and if there are any folder inside folder it will count the files in that folder too.
...
4
votes
1
answer
926
views
A rename utility in Scala
I made a commandline tool for renaming files, similar to the rename command in Ubuntu. Here is the code:
...
6
votes
1
answer
1k
views
Mapping a file system to a tree structure
I need to write a very basic file/directory browser. The data structure I'm using is pretty simple - a Node with an optional parent and children. Along with the data structure I also need a simple ...
11
votes
2
answers
187
views
Test runner for Scala problems
I'm learning Scala and could use another set of eyes on the code below. I'm creating a test runner for the 99 scala problems set. I figure between actually solving the problems and working through the ...
3
votes
2
answers
1k
views
Processing files in a directory tree
I'm new to Scala, and would appreciate any notes about a better approach, correctness, or style.
...