Skip to content

An in-memory filesystem playground to learn Scala in vscode with metals.

Notifications You must be signed in to change notification settings

rcdmk/in-memory-file-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In-memory Filesystem Scala Playground

An in-memory implementation of a simulated Unix shell with basic operations on an in-memory filesystem representation.

Supported operations

  • cat - reads file contents
  • cd - changes current working directory
  • echo - prints to std out, outputs to a file or appends output to a file
  • exit - terminate app
  • ls - lists directory contents
  • mkdir - creates a directory
  • pwd - prints working directory path
  • rm - remove a file or directory (if empty)
  • touch - creates an empty file

Only basic operations are supported at the moment. Piping is not supported.

Executing

To execute this project locally, navigate to the root of the repository and run

$ sbt run

Testing

To run the project tests, navigate to the root of the repository and run

$ sbt test

About

An in-memory filesystem playground to learn Scala in vscode with metals.

Topics

Resources

Stars

Watchers

Forks

Languages